[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not so easy, because it does not work with wantobject=False and can not work with future versions of Tk. Actually we should use self.tk instead of _default_root, but this will change the signature of _list_from_layouttuple() and _val_or_dict(). Due t

[issue21486] optimize v4 & v6 netmask parsing

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With C implementation (issue14373) functools.lru_cache is so fast as manually written specialized code. -- ___ Python tracker ___ ___

[issue21505] cx_freeze multiprocessing bug

2014-05-13 Thread Shivani
New submission from Shivani: Hey all, I have problem with multiprocessing and cx_freeze.. I am freezing my UI application. i have a line in code::-> "multiprocessing.set_executable(os.path.join(sys.exec_prefix, 'pythonw.exe'))" when a commented out this line, my UI keeps iterating again and ag

[issue21470] Better seeding for the random module

2014-05-13 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks for the explanations! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue21470] Better seeding for the random module

2014-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21470] Better seeding for the random module

2014-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c203df907092 by Raymond Hettinger in branch '3.4': Issue #21470: Do a better job seeding the random number generator http://hg.python.org/cpython/rev/c203df907092 -- ___ Python tracker

[issue21470] Better seeding for the random module

2014-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b5265752942 by Raymond Hettinger in branch '2.7': Issue #21470: Do a better job seeding the random number generator http://hg.python.org/cpython/rev/7b5265752942 -- nosy: +python-dev ___ Python tracker

[issue21495] Sane default for logging config

2014-05-13 Thread Thomas Guettler
Thomas Guettler added the comment: Thank you for reading and replying. Yes, I wrote no concret proposal up to now. I have this solutions in mind: logging.config.defaultConfig() Related https://docs.python.org/2/library/logging.config.html Loading a python module:

[issue21502] freeze.py not working properly with OS X framework builds

2014-05-13 Thread Ned Deily
Changes by Ned Deily : -- assignee: ronaldoussoren -> ned.deily nosy: +ned.deily stage: -> needs patch title: freeze.py not working properly on Mac OSX 10.9 -> freeze.py not working properly with OS X framework builds type: compile error -> enhancement

[issue21504] can the subprocess module war using os.wait4 and so return usage?

2014-05-13 Thread donald petravick
New submission from donald petravick: hi, we use python for the Dark Energy Survey and use the subprocess module to run a variety of programs, which we do not control. One concern we have is to monitor system information such as whether the code causes swapping. It's be really useful if --

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-05-13 Thread Josh Cogliati
Josh Cogliati added the comment: Other than in the source code in Modules/main.c, is -b documented anywhere? (For 2.7.6, The html docs, man page, and --help all failed to mention it) -- nosy: +jrincayc ___ Python tracker

[issue21502] freeze.py not working properly on Mac OSX 10.9

2014-05-13 Thread Jiang-Nan Yang
Changes by Jiang-Nan Yang : -- nosy: -ronaldoussoren, yjiangnan versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mai

[issue9266] ctypes "ValueError: NULL pointer access" on Win7 x64

2014-05-13 Thread mattip
mattip added the comment: This was fixed with changeset 8fa73a0885c9 in Jan 2011, probably should be closed -- nosy: +mattip ___ Python tracker ___ __

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-05-13 Thread Nikolaus Rath
Nikolaus Rath added the comment: On 05/13/2014 12:41 PM, Serhiy Storchaka wrote: > Note that this is not work with the punycode encoding (and may be some > third-party encodings). I do not understand. Could you elaborate? -- ___ Python tracker

[issue21503] Use test_both() consistently throughout test_importlib

2014-05-13 Thread Eric Snow
New submission from Eric Snow: test_importlib.util provides the test_both() function that facilitates testing both the frozen and source versions of importlib. The function helps to keep the tests more maintainable. However, the following test modules are not using test_both(): Lib/test/tes

[issue21502] freeze.py not working properly on Mac OSX 10.9

2014-05-13 Thread Jiang-Nan Yang
New submission from Jiang-Nan Yang: Command: python3.4 /Library/Frameworks/Python.framework/Versions/3.4/share/doc/python3.4/examples/Tools/freeze/freeze.py okcointrade.py Error: Reporting needed directory %s not found Basically the problem is on lines 235~239: config should be config-3.4m,

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-05-13 Thread Ned Deily
Ned Deily added the comment: Berker, if you think it should go into 3.4.1, you need to set the priority to "release blocker" to bring it to the attention of the release manager. -- nosy: +ned.deily ___ Python tracker

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-05-13 Thread Berker Peksag
Berker Peksag added the comment: Is there a chance to get this into 3.4.1? -- stage: -> patch review versions: +Python 3.5 ___ Python tracker ___ ___

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2014-05-13 Thread Eric Ongerth
Eric Ongerth added the comment: I'm getting the same PermissionError 13: Error in atexit._run_exitfuncs: PermissionError: [Errno 13] Permission denied My case is: I'm running Python 3.4.0 as a non-root user in a docker.io container built on ubuntu 14.04. This user was created during the creat

[issue21496] pyvenv activate_this.py

2014-05-13 Thread Vinay Sajip
Vinay Sajip added the comment: You say "from other Python code", but you mean running an external command in a subprocess, right? If you know where that command is (which you would need to in order to invoke activate_this on the appropriate venv) then you could run the command directly from it

[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-05-13 Thread Berker Peksag
Changes by Berker Peksag : -- stage: test needed -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue21495] Sane default for logging config

2014-05-13 Thread Vinay Sajip
Vinay Sajip added the comment: Who decides what's sane and what isn't? You seem to be asking for something, but you don't seem to have a concrete proposal. Are there "sane" defaults in other worlds than the Python world? What are they? -- ___ Python

[issue18062] m68k FPU precision issue

2014-05-13 Thread Stefan Krah
Stefan Krah added the comment: This should be fixed now. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> HAVE_PY_SET_53BIT_PRECISION for m68k type: -> behavior ___ Python tracker

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

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

[issue5404] Cross-compiling Python

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

[issue4999] multiprocessing.Queue does not order objects

2014-05-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue12271] panel.h is not found even if it's installed on various flavours of SUSE

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue17781] optimize compilation options

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

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

[issue969718] BASECFLAGS are not passed to module build line

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

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue1043134] Add preferred extensions for MIME types

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

[issue1615158] POSIX capabilities support

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

[issue1747670] Limiting data copy in xmlrpclib

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

[issue4928] Problem with tempfile.NamedTemporaryFile

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

[issue21370] segfault from simple traceback.format_exc call

2014-05-13 Thread Stefan Krah
Stefan Krah added the comment: Closing due to lack of response. -- resolution: -> works for me stage: -> resolved status: open -> closed type: -> crash ___ Python tracker ___

[issue21412] Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue18859] README.valgrind should mention --with-valgrind

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue19554] Enable all freebsd* host platforms

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue15757] ./configure --with-pydebug on FreeBSD results in -O2 -pipe eventually ending up in CFLAGS.

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue16275] test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler)

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue16721] configure incorrectly adds -OPT:Olimit=0 for clang

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue13837] test_shutil fails with symlinks enabled under Windows

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue15668] PEP 3121, 384 Refactoring applied to random module

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue14141] 2.7.2 64-bit Windows library has __impt_Py* for several symbols instead of __imp__Py*

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue14142] getlocale(LC_ALL) behavior

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> out of date stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___ _

[issue15192] test_bufio failures on Win64 buildbot

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue5619] Pass MS CRT debug flags into subprocesses

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

[issue14341] sporadic (?) test_urllib2 failures

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue6895] locale._parse_localename fails when localename does not contain encoding information

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

[issue7424] segmentation fault in listextend during install

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

[issue12923] test_urllib fails in refleak mode

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue4999] multiprocessing.Queue does not order objects

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

[issue7836] Add /usr/sfw/lib to OpenSSL search path for Solaris.

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

[issue6467] PyOS_Readline: treatment of "1234EOF"; behavior of builtin_raw_input

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

[issue13869] CFLAGS="-UNDEBUG" build failure

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C

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

[issue13669] XATTR_SIZE_MAX and XATTR_LIST_MAX undefined on kfreebsd/debian with eglibc

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue20051] PA-RISC buildbot: compiler cannot create executables

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue16108] Include maintainer information in register/upload

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue15871] Online docs: make index search always available.

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-13 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: It seems that most functions and methods do not bother checking if _default_root exists before trying to access it. However, upon seeing line 366 in ttk (if tkinter._support_default_root:), my recommendation would be to change line 319 to "if tkinter._s

[issue21496] pyvenv activate_this.py

2014-05-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21495] Sane default for logging config

2014-05-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue18877] tkinter askopenfilenames does not work in Windows library folder

2014-05-13 Thread AJNeufeld
AJNeufeld added the comment: I'd like this issue to be reopened. It does not appear resolved. It is different from the wantobjects=False issue. Windows 7 has 'libraries' which are folders containing the contents of more than one folder. For instance, on my computer > Libraries > Document

[issue21501] submitting mmap example for use in documentation

2014-05-13 Thread Steve Foley
Steve Foley added the comment: sorry! this is the correct version ;-) --- import mmap, os, select NUM_CHILDREN = 30 MSG_LEN = 9 BUF_LEN = NUM_CHILDREN * MSG_LEN buf = mmap.mmap(-1, BUF_LEN) p = select.poll() def write_buffer(i): msg = '%s\t%d\n' %

[issue21486] optimize v4 & v6 netmask parsing

2014-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Because that would incur the cost of LRU logic and locking, which we don't need here. -- ___ Python tracker ___ ___

[issue21486] optimize v4 & v6 netmask parsing

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why not just use functools.lru_cache? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that this is not work with the punycode encoding (and may be some third-party encodings). -- ___ Python tracker ___

[issue2052] Allow changing difflib._file_template character encoding.

2014-05-13 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file35245/issue2052_html5.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue2052] Allow changing difflib._file_template character encoding.

2014-05-13 Thread Berker Peksag
Berker Peksag added the comment: Attaching two patches: issue2052.diff adds a "charset" keyword argument to HtmlDiff.make_file(). issue2052_html5.diff also adds a "charset" keyword argument to HtmlDiff.make_file() and updates the markup of HtmlDiff() to HTML5. I tested it with Firefox 29 and

[issue21501] submitting mmap example for use in documentation

2014-05-13 Thread Steve Foley
New submission from Steve Foley: Hello, I would like to submit an example for the mmap docs page. It demonstrates the use of shared memory and message passing between processes. Thanks! import mmap, os, select NUM_CHILDREN = 30 MSG_LEN = 8 BUF_LEN = NUM_CHILDREN * MSG_LE

[issue21470] Better seeding for the random module

2014-05-13 Thread Tim Peters
Tim Peters added the comment: Crytpo generators are a whole different world, and I wouldn't listen to anyone save a bona fide expert in that field. Plausible: the "hardest thing" OpenSSL has to do is generate secure RSA keys. But the bit length of an RSA key can't be taken at face value: t

[issue21500] Make use of the "load_tests" protocol in test_importlib packages

2014-05-13 Thread Eric Snow
New submission from Eric Snow: Right now to run importlib tests you can do either of the following: ./python -m tests test_importlib ./python -m tests.test_importlib Both make use of the regrtest infrastructure. For test submodules the commands are similar: ./python -m tests test_importlib.t

[issue21499] test_importlib incorrectly relies on .__builtins__

2014-05-13 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue21499] test_importlib incorrectly relies on .__builtins__

2014-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16d26391ec36 by Eric Snow in branch '3.4': Issue #21499: Ignore __builtins__ in several test_importlib.test_api tests. http://hg.python.org/cpython/rev/16d26391ec36 New changeset bdf94b2c0639 by Eric Snow in branch 'default': Merge from 3.4 (for #21

[issue21499] test_importlib incorrectly relies on .__builtins__

2014-05-13 Thread Eric Snow
New submission from Eric Snow: Per the docs*, a module's __builtins__ may be a module or a dict or even missing. However, test.test_importlib.test_api.ReloadTests checks __builtins__ as part of several tests. Instead, the tests should ignore __bulitins__. I'll push a patch in a minute that

[issue19656] Add Py3k warning for non-ascii bytes literals

2014-05-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21329] configparser can't parse MySQL style config

2014-05-13 Thread R. David Murray
R. David Murray added the comment: The data structure you are asking for bears a resemblance to the data structure used by the email package to record message headers. Email uses a list with a dict-like API cobbled together on top. The difference with your suggestion is that email also needs

[issue21422] int << 0: return the number unmodified

2014-05-13 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > > What we want to test is that the return value is of type 'int', which is what > Victor's test checks. > Thank you for the explanations! for 2.7.6 type(2 << 62) is and type(2 << 61) is (I suppose it's analogous in a 32 bit machine around type(2 <<

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: > This means there's an unexpected gotcha I prefer to see an exception before sys.stderr is None, instead of not seeing the traceback when the application does crash. It is usually a pain to reproduce a crash in the exact same conditions. > if I want my appli

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread Florian Bruhin
Florian Bruhin added the comment: The thing is the developer is not necessarely the one controlling if sys.stderr is None, sometimes the user is. For example, see https://docs.python.org/3.4/using/windows.html#executing-scripts-without-the-python-launcher - an user might have decided to use p

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: > I personally would prefer failing silently though so the application still > runs (if there's no stderr, there just is no fault log), but that's debatable > of course. Nope, there is no debate: there is the Zen of Python :-) "Errors should never pass silent

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread Florian Bruhin
Florian Bruhin added the comment: I didn't test the patch (I don't have the toolchain set up to do so), but it looks like this is indeed an exception which makes more sense to the developer. When I saw the exception as it is now, I only discovered it's related to stderr being None by finding p

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread STINNER Victor
STINNER Victor added the comment: Attached patch modifies faulthandler to raises a RuntimeError("sys.stderr is None") with your use case. Is it what you expected? -- keywords: +patch Added file: http://bugs.python.org/file35243/faulthandler.patch ___

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-05-13 Thread Brett Cannon
Brett Cannon added the comment: I thought we gave ourselves the wiggle room to change the warnings we emitted for -3 (I unfortunately can't find a reference to something relating to that in the Python 2.7 PEP)? -- ___ Python tracker

[issue21489] Switching from -OO to -O still uses cached bytecode

2014-05-13 Thread Brett Cannon
Brett Cannon added the comment: It's something that could potentially be changed in the future, but no one has prioritized it enough to worry about it. Typically this opens a pandora's box of wanting to generalize it so it supports custom user optimizations as well and then people lose motivat

[issue9253] argparse: optional subparsers

2014-05-13 Thread couplewavylines
Changes by couplewavylines : -- nosy: +couplewavylines ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21494] getopt error doesnot display correct error

2014-05-13 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: enhancement -> behavior ___ Python tracker ___ __

[issue21488] codecs.encode/decode documentation inconsistency

2014-05-13 Thread Brett Cannon
Brett Cannon added the comment: Berker's patch LGTM, so assigning to him to commit. -- assignee: docs@python -> berker.peksag nosy: +brett.cannon stage: patch review -> commit review ___ Python tracker

[issue21498] configparser accepts keys beginning with comment_chars when writing

2014-05-13 Thread Florian Bruhin
New submission from Florian Bruhin: When adding something to a configparser instance which has a key beginning with a comment char, it writes the data to a file without generating an error, and when reading the file back obviously the data is different as it's a comment: >>> cp = configpar

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Related: https://groups.google.com/forum/#!topic/dev-python/ytbYwHXKC6o I'm not sure how what is proposed here would be useful for ThreadPoolExecutor but it would definitely be helpful being able to set an initializer for ProcessPoolExecutor because right no

[issue21497] faulthandler should handle sys.stderr being None gracefully

2014-05-13 Thread Florian Bruhin
New submission from Florian Bruhin: When faulthandler is used while sys.stderr is None (e.g. when using pythonw.exe), a (IMHO) confusing exception is raised: Traceback (most recent call last): File "test.py", line 7, in faulthandler.enable() AttributeError: 'NoneType' ob

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: Sorry, I wasn't concerned from a timing attack perspective here, I was concerned from an "oh my god implicit coercion is terrible" perspective :-) -- ___ Python tracker _

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Donald Stufft
Donald Stufft added the comment: Oh, gotcha. Yea I agree, but it's Python 2.x that's par for the course. -- ___ Python tracker ___ __

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Donald Stufft
Donald Stufft added the comment: I don't think there's any way around it, nor do I think that it actually leaks any meaningful timing. -- ___ Python tracker ___

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: I'm still concerned about the unicode issue, but I'm not sure what the right way to fix it is. -- ___ Python tracker ___ _

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Donald Stufft
Donald Stufft added the comment: The attached patch looks pretty good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

  1   2   >