[issue15505] unittest.installHandler incorrectly assumes SIGINT handler is set.

2012-07-30 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file26604/inthandler.patch ___ Python tracker <http://bugs.python.org/issue15505> ___ ___ Python-bug

[issue15507] test_subprocess assumes SIGINT is not being ignored.

2012-07-31 Thread Thomas Wouters
Thomas Wouters added the comment: No, using preexec_fn leaves all kinds of races when mixing threads and processes (which is a bad idea, but people still sometimes do.) And no, restore_signals doesn't fix this; restore_signals only resets the signals the *Python interpreter itself* ig

[issue15535] Fix pickling of named tuples in 2.7.3

2012-08-02 Thread Thomas Miedema
New submission from Thomas Miedema: Pickling a namedtuple Point(x=10, y=20, z=30) in Python 2.7.2 with protocol level 0 would result in something like the following output: ccopy_reg _reconstructor p0 (c__main__ Point p1 c__builtin__ tuple p2 (I10 I20 I30 tp3 tp4

[issue15578] Crash when modifying sys.modules during import

2012-08-07 Thread Thomas Wouters
New submission from Thomas Wouters: In a submodule of a package, replacing the parent package in sys.modules during import of the package (meaning the only reference to it is in sys.modules) and then importing itself (or something from itself) crashes the interpreter: centurion:~/python

[issue15535] Fix pickling of named tuples in 2.7.3

2012-08-15 Thread Thomas Miedema
Thomas Miedema added the comment: Attached is a script that shows the problem at hand. Note that my remark that this bug could result in very large pickled files when using nested namedtuples seems not te be true. -- Added file: http://bugs.python.org/file26820

[issue15535] Fix pickling of named tuples in 2.7.3 (BUG)

2012-08-31 Thread Thomas Miedema
Thomas Miedema added the comment: Added a better testcase. -- title: Fix pickling of named tuples in 2.7.3 -> Fix pickling of named tuples in 2.7.3 (BUG) Added file: http://bugs.python.org/file27077/namedtuple_pickle_fix.patch ___ Python trac

[issue15535] Fix pickling of named tuples in 2.7.3 (BUG)

2012-08-31 Thread Thomas Miedema
Changes by Thomas Miedema : Removed file: http://bugs.python.org/file26662/namedtuple_pickle_fix.patch ___ Python tracker <http://bugs.python.org/issue15535> ___ ___ Pytho

[issue15856] inspect.getsource(SomeClass) doesn't show @decorators

2012-09-03 Thread Thomas Kluyver
New submission from Thomas Kluyver: Since bug #1006219 was fixed, inspect.getsource(func) has returned the source of a function including any decorators on the function. But doing the same with a class, the returned source doesn't include decorators. With functions, the co_firstl

[issue15887] urlencode should accept iterables of pairs

2012-09-15 Thread Thomas Lee
Thomas Lee added the comment: Working on a patch for this. Should be ready for review shortly. -- nosy: +thomaslee ___ Python tracker <http://bugs.python.org/issue15

[issue15887] urlencode should accept iterables of pairs

2012-09-15 Thread Thomas Lee
Thomas Lee added the comment: Patch attached. Terry, you'll notice I wrap the main part of the urlencode function in a big try/except block to catch TypeErrors & ValueErrors. I'm a bit concerned that doing this may misreport the true underlying error in the event we screw up val

[issue15893] Py_FrozenMain() resource leak and missing malloc checks

2012-09-15 Thread Thomas Lee
Thomas Lee added the comment: Patch against hg tip attached. -- keywords: +patch nosy: +thomaslee Added file: http://bugs.python.org/file27202/issue-15893-01.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-09-23 Thread Thomas Lee
Thomas Lee added the comment: I can reproduce this on Debian Wheezy. Both with the system Python (2.7.3rc2) and the 2.7 branch built from source. -- nosy: +thomaslee ___ Python tracker <http://bugs.python.org/issue15

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-09-27 Thread Thomas Lee
Thomas Lee added the comment: I know this is an old-ish issue, but I can't reproduce anything like this on Debian Wheezy with either Python 2.7 or tip (3.x). I think we need more details of what you're trying to do here Roger. 1. What exactly did you do to reproduce the strace outpu

[issue16061] performance regression in string replace for 3.3

2012-09-27 Thread Thomas Lee
Thomas Lee added the comment: My results aren't quite as dramatic as yours, but there does appear to be a regression: $ ./python -V Python 2.7.3+ $ ./python -m timeit -s "s = 'b'*1000" "s.replace('b', 'a')" 10 loops, best

[issue16062] Socket closed prematurely in httplib for https

2012-09-27 Thread Thomas Lee
Thomas Lee added the comment: Thanks ABR. You may be better off raising a ticket against requests (https://github.com/kennethreitz/requests). I'm assuming what you want to happen here is for the session.post() call to return the 401 response without raising an exception. Perfectly reaso

[issue14886] json C vs pure-python implementation difference

2012-09-28 Thread Thomas Lee
Thomas Lee added the comment: FWIW, I think Mark's right here. I'm +1 on the implementations being consistent. Seems like a potentially nasty surprise if you move from one implementation to the other and, lacking awareness of this quirk, design your algorithm around semantics. I

[issue16110] Provide logging.config.configParserConfig

2012-10-06 Thread Thomas Bach
Thomas Bach added the comment: Yeah, the change you suggest sounds reasonable. Thanks for reconsidering the case! -- ___ Python tracker <http://bugs.python.org/issue16

[issue16349] Document whether it's safe to use bytes for struct format string

2012-10-28 Thread Thomas Kluyver
New submission from Thomas Kluyver: At least in CPython, format strings can be given as bytes, as an alternative to str. E.g. >>> struct.unpack(b'>hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03') (1, 2, 3) Looking at the source code [1], this appears to be consciousl

[issue21050] Failure to import win32api (from pywin32)

2014-03-24 Thread Thomas Heller
New submission from Thomas Heller: With python 3.4 and pywin32 version 218 it is only possible to import win32com or win32api when pywintypes has been imported before. Here is part of a session with 'python -v': >>> >>> import win32api Traceback (most recent call

[issue21050] Failure to import win32api (from pywin32)

2014-03-24 Thread Thomas Heller
Thomas Heller added the comment: It was most certainly an issue on my side, something with leftover files or directories from a previous installation. After cleaning everything up it works now. Sorry for the confusion. (A personal remark: sometimes, the bdist_wininst uninstaller does not

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-24 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: No, because it's not simply about the size of the installed Python standard library: it's also about the number of dependencies to build before being able to build Python. For example, a normal Python installation requires OpenSSL, libncurses, a

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-24 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: But this expectation is not true: if dependencies are not available, Python silently disables the build of certain modules. So this story of making the standard library always has all the modules does not really stand

[issue17621] Create a lazy import loader mixin

2014-03-26 Thread Thomas Wouters
Changes by Thomas Wouters : -- nosy: +twouters ___ Python tracker <http://bugs.python.org/issue17621> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20739] PEP 463 (except expression) implementation

2014-03-27 Thread Thomas Wouters
Thomas Wouters added the comment: The implementation in the patch preserves the exception context. It's probably the thing that took the most code, and it's why there's two new opcodes in the patch :) It's covered in the tests, too. -- __

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-03-27 Thread Thomas Kluyver
Thomas Kluyver added the comment: For future reference, cx_Freeze ships its own copy of ModuleFinder, so it doesn't depend on the stdlib copy. This issue was fixed there some time around the release of Python 3.3. I realised recently that this is based on code in the stdlib, and I&#x

[issue21130] equivalent functools.partial instances should compare equal

2014-04-02 Thread Thomas Heller
New submission from Thomas Heller: I think that 'equivalent' functools.partial objects should compare equal, so the following snippet SHOULD print True: >>> import functools >>> f = lambda x: x >>> a = functools.partial(f, 42) >>>

[issue21130] equivalent functools.partial instances should compare equal

2014-04-02 Thread Thomas Heller
Thomas Heller added the comment: Sure. I'm not sure 'equivalent' is the word I should have used. I suggest (and I would have expected) that partial instances (a, b) should compare equal when a.func == b.func \ and a.args == b.args \ and a.keyword

[issue21130] equivalent functools.partial instances should compare equal

2014-04-04 Thread Thomas Heller
Thomas Heller added the comment: My usecase is: I create kind of bound methods with functools.partial. Apologies for the confusion by using the word 'equivalent'; what I mean is that partial instances should (IMO) compare equal when they contain the same function and args/keyw

[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Thomas Heller
Changes by Thomas Heller : -- nosy: +theller ___ Python tracker <http://bugs.python.org/issue21157> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread Thomas Ballinger
New submission from Thomas Ballinger: https://gist.github.com/thomasballinger/10666031 """ inspect.getsourcelines incorrectly guesses what lines correspond to the function foo see getblock in inspect.py once it finds a lambda, def or class it finishes it then stops so get

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread Thomas Ballinger
Thomas Ballinger added the comment: "The code object's co_lnotab is how inspect should be getting the sourcelines of the code, instead of looking for the first codeblock." I'm looking at this now, thanks to Yhg1s for the above. -- __

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Thomas Wouters
Changes by Thomas Wouters : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue15002> ___ ___ Python-bugs-list mai

[issue17752] many distutils tests fail when run from the installed location

2014-04-16 Thread Thomas Wouters
Thomas Wouters added the comment: Matthias, I think this is already fixed for Python 3.3 and later (at least.) There may still be problems in 2.7, but I'm not sure if it's worth fixing them there. Can you see if you still have problems, and if so, show us how to reproduce them? (

[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2014-04-16 Thread Thomas Fenzl
Thomas Fenzl added the comment: Considering public API elements, there are more inconsistencies. E.g. Pool: 'imap' 'apply' 'join' 'map_async' 'Process' 'terminate' 'close' 'starmap_async' 'starmap

[issue17861] put opcode information in one place

2014-04-16 Thread Thomas Wouters
Thomas Wouters added the comment: FYI, this broke building in a separate object directory (again!) for multiple reasons: it's running the script without specifying $(srcdir), and it's writing to $(srcdir)/Include/opcode.h (where $(srcdir) may be unwritable), and it's picki

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2014-04-16 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- nosy: +Thomas Fenzl ___ Python tracker <http://bugs.python.org/issue1684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17861] put opcode information in one place

2014-04-16 Thread Thomas Wouters
Thomas Wouters added the comment: Here's a minimal patch to at least make the current mechanism work when using a separate build directory. I still don't like the fact that this is importing opcode.py in a different Python than the target Python. Nor do I like that the script

[issue15887] urlencode should accept iterables of pairs

2014-04-16 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- nosy: +Thomas Fenzl ___ Python tracker <http://bugs.python.org/issue15887> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Thomas Wouters
Thomas Wouters added the comment: You should put the definition closer to the Windows one (right after or before it) rather than further down the file. Other than that, looks good. -- ___ Python tracker <http://bugs.python.org/issue21

[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Thomas Wouters
Thomas Wouters added the comment: Looks good. -- ___ Python tracker <http://bugs.python.org/issue21275> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Thomas Wouters
Thomas Wouters added the comment: Looks good. -- ___ Python tracker <http://bugs.python.org/issue21276> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Thomas Wouters
Thomas Wouters added the comment: Good fix. Do remove the 'first curses header check' comment you add, and don't forget to regenerate configure (and maybe pyconfig.h.in? I don't know if that'll change.) --

[issue21298] Cheese shop registration stopped working for me recently

2014-04-18 Thread Thomas Levine
New submission from Thomas Levine: This command used to work just fine for me. :: python setup.py register Now it doesn't. For example, :: $ python3 setup.py register /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'instal

[issue21277] don't try to link _ctypes with a ffi_convenience library

2014-04-18 Thread Thomas Wouters
Thomas Wouters added the comment: I don't understand the story with ffi_convenience here. Perhaps someone else on python-dev remembers what it was for and whether we need it for any platforms, still? -- ___ Python tracker <http://bugs.py

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
New submission from Thomas Kluyver: The compileall module's command line interface has a -q (quiet) flag which suppresses most of the output, but it still prints error messages. I'd like an entirely silent mode with no output. My use case is byte-compiling Python files as part of a

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Patch attached. This works by making the -q flag countable, so you pass -qq to suppress all output. In the Python API, the quiet parameter has become an integer, so passing 2 is equivalent to -qq. This should be fully backwards compatible with passing True

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Changes by Thomas Kluyver : Removed file: http://bugs.python.org/file35012/compileall_silent.patch ___ Python tracker <http://bugs.python.org/issue21338> ___ ___ Pytho

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Sorry, I somehow attached an old version of the patch. This one should be correct. Steven: Redirection relies on a shell - the native 'run a process' interface that the installer uses can't do that. There are ways to work around this, bu

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Changes by Thomas Kluyver : Removed file: http://bugs.python.org/file35013/compileall_silent.patch ___ Python tracker <http://bugs.python.org/issue21338> ___ ___ Pytho

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Gah, still wrong. Trying again. -- Added file: http://bugs.python.org/file35014/compileall_silent.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: In fact, I will probably end up working around this anyway, because I'll have to support versions of Python without this fix for some time. So I don't feel strongly that it needs to go in, but I will do any revisions or changes requested if peopl

[issue21457] NetBSD curses support improvements

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: NetBSD's curses headers have different include guards than ncurses. Also, the NetBSD curses library has been improved and some workaround are no longer necessary. Diff against hg attached. -- components: Extension Modules files: curses.diff key

[issue21458] MirBSD support

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: configure needs to know about MirBSD -- it's quite similar to OpenBSD, so that's all that's needed. -- components: Build files: configure.diff keywords: patch messages: 218141 nosy: wiz priority: normal severity: normal status: ope

[issue21459] DragonFlyBSD support

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: DragonFlyBSD support needs some slight changes. -- components: Build files: dragonfly.diff keywords: patch messages: 218142 nosy: wiz priority: normal severity: normal status: open title: DragonFlyBSD support versions: Python 3.5 Added file: http

[issue21460] distutils: use LDFLAGS

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: There are two possible sources for extra linker arguments: - 'extra_link_args' in Extension object - LDFLAGS environment variable The environment variable should take precedence, and any sensible compiler will give precedence to later command

[issue21460] distutils: use LDFLAGS

2014-05-09 Thread Thomas Klausner
Changes by Thomas Klausner : -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/issue21460> ___ ___ Pyth

[issue21461] Recognize -pthread

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: makesetup should know about the "-pthread" compiler flag. -- components: Extension Modules files: pthread.diff keywords: patch messages: 218144 nosy: wiz priority: normal severity: normal status: open title: Recognize -pthread type: e

[issue21457] NetBSD curses support improvements

2014-05-09 Thread Thomas Klausner
Thomas Klausner added the comment: Thanks for your reply! I've checked: keypad in NetBSD curses was fixed in 2009. All supported NetBSD release (5.x and 6.x) have the fix. nodelay and keyname were fixed even earlier, in 2003. So this is no problem for older NetBSD rel

[issue21458] MirBSD support

2014-05-09 Thread Thomas Klausner
Thomas Klausner added the comment: Just a final comment: MirBSD's official packaging system is pkgsrc, which is also the official packaging system for NetBSD. (This is the reason I'm sending these in bulk, to clean up local pkgs

[issue21459] DragonFlyBSD support

2014-05-09 Thread Thomas Klausner
Thomas Klausner added the comment: Just a final comment: pkgsrc was DragonFlyBSD's official packaging system, which is also the official packaging system for NetBSD. (This is the reason I'm sending these in bulk, to clean up local pkgs

[issue21495] Sane default for logging config

2014-05-13 Thread Thomas Guettler
New submission from Thomas Guettler: Imagine you write a small console script which is implemented like a library. This tool has to do two things: the console script needs to configure the logging, and the library needs to use it. The library usage of logging it easy well documented

[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

[issue21516] pathlib.Path(...).is_dir() crashes on readonly directories (Windows)

2014-05-16 Thread Thomas Heller
New submission from Thomas Heller: On Windows, pathlib.Path(...).is_dir() crashes on readonly directories while os.path.isdir(...) works fine. Example on Windows7: Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)] on win32 Type "help",

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread Thomas Heller
Thomas Heller added the comment: Well, not 'readonly' directories but directories where the user has no access rights. I corrected the title of this bug. -- title: pathlib.Path(...).is_dir() crashes on readonly directories (Windows) -> pathlib.Path(...).is_dir() cr

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-17 Thread Thomas Heller
Thomas Heller added the comment: > When you say "os.path.isdir(...) works fine", you mean it's returning False? As shown in the original report (http://bugs.python.org/issue21516#msg218664) os.path.isdir() returns True; which is correct since c:\Users\admin is a direc

[issue21495] Sane default for logging config

2014-05-18 Thread Thomas Guettler
Thomas Guettler added the comment: Just for the record. Here are the discussions about this topic on the python-ideas mailing list: https://mail.python.org/pipermail/python-ideas/2014-May/027839.html https://mail.python.org/pipermail/python-ideas/2014-May/027858.html

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Thomas Heller
Thomas Heller added the comment: > As for progress, the answer is no as the hope is to eventually replace > zipimport with something in pure Python thanks to importlib. Does this mean there is no chance to put this into 3.4 and 3.3, do we really have to wait until 3.5 with it's

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Thomas Klausner added the comment: Actually, there are even less changes needed nowadays. Please apply this really small patch. -- Added file: http://bugs.python.org/file35428/dragonfly.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Changes by Thomas Klausner : Removed file: http://bugs.python.org/file35195/dragonfly.diff ___ Python tracker <http://bugs.python.org/issue21459> ___ ___ Python-bug

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Thomas Klausner added the comment: Semaphore handling needs another change. if sem_open etc. are not provided by the operating system, do not export them (Modules/_multiprocessing/multiprocessing.c). Updated diff attached. That part of the diff might affect more operating systems

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Changes by Thomas Klausner : Removed file: http://bugs.python.org/file35428/dragonfly.diff ___ Python tracker <http://bugs.python.org/issue21459> ___ ___ Python-bug

[issue19561] request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined

2014-06-10 Thread Thomas Klausner
Changes by Thomas Klausner : -- nosy: +wiz ___ Python tracker <http://bugs.python.org/issue19561> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14102] argparse: add ability to create a man page

2014-06-11 Thread Thomas Guettler
Changes by Thomas Guettler : -- nosy: -guettli ___ Python tracker <http://bugs.python.org/issue14102> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16467] frozen importlib required for extending Python interpreter not public

2012-11-13 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue16467> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-11-17 Thread Thomas Kluyver
Thomas Kluyver added the comment: It seems pretty arbitrary and newcomer-unfriendly to decide that Python doesn't support running setup.py inside IDLE. Exhibit A: confused newcomer trying to install distribute, getting unhelpful error message. http://stackoverflow.com/questions/133

[issue11679] readline interferes with characters beginning with byte \xe9

2012-11-19 Thread Thomas Kluyver
Thomas Kluyver added the comment: OK, thanks, and sorry for the noise. I've closed this issue. Looking at the readline manual, it looks like this is tied up with the options input-meta, output-meta and convert-meta. Fiddling around with .inputrc hasn't clarified exactly what they

[issue16544] Add external link to ast docs

2012-11-24 Thread Thomas Kluyver
Thomas Kluyver added the comment: Thanks, I'm really glad to see that it's useful to others. I don't mind contributing it to Python, but I wonder if it's better to let it develop separately for a few months first - it's still very new, and I can improve it faster in

[issue16544] Add external link to ast docs

2012-11-24 Thread Thomas Kluyver
Thomas Kluyver added the comment: I think that putting the full content of GTS into the ast module docs would make it awkwardly long. Perhaps the bulk of it could become a howto, and GTS could be maintained separately as a showcase of examples

[issue16572] Bad multi-inheritance support in some libs like threading or multiprocessing

2012-11-28 Thread Thomas Chiroux
New submission from Thomas Chiroux: when using multi-inheritance and super() in __init__(), super() tries to run each constructor once. For this to work correctly, it is needed to call super() in each constructor, including for Classes directly inherited from object. The sample below does not

[issue16572] Bad multi-inheritance support in some libs like threading or multiprocessing

2012-11-28 Thread Thomas Chiroux
Thomas Chiroux added the comment: updated diff file, unified format -- Added file: http://bugs.python.org/file28151/diff_unified_threading.py_2.7.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16572] Bad multi-inheritance support in some libs like threading or multiprocessing

2012-11-28 Thread Thomas Chiroux
Thomas Chiroux added the comment: That's right. Lets consider this 'patch' was more for illustrating my example (like: this kind of modification may work) than to add directly into python core module... (which i'm not capable of) But I think the problem remains: do yo

[issue16349] Document whether it's safe to use bytes for struct format string

2012-11-30 Thread Thomas Kluyver
Thomas Kluyver added the comment: I'm happy to put together a docs patch, but I don't have any indication of the right answer (is it a safe feature to use, or an implementation detail?) Is there another venue where I should raise th

[issue16752] Missing import in modulefinder.py

2012-12-22 Thread Thomas Heller
New submission from Thomas Heller: It seems the statement import importlib is missing in 3.3's modulefinder.py -- components: Library (Lib) messages: 177951 nosy: theller priority: normal severity: normal status: open title: Missing import in modulefinder.py versions: Pytho

[issue16782] No curses.initwin: Incorrect package docstring for curses

2012-12-25 Thread Thomas Ballinger
New submission from Thomas Ballinger: Lib/curses/__init__.py has `curses.initwin()` in the docstring example code, but this function does not exist (should be `initscr()`) Bad in at least back to 2.4 -- assignee: docs@python components: Documentation files: docfix.patch keywords

[issue14102] argparse: add ability to create a man page

2013-01-11 Thread Thomas Guettler
Changes by Thomas Guettler : -- nosy: +guettli ___ Python tracker <http://bugs.python.org/issue14102> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16933] argparse: remove magic from examples

2013-01-11 Thread Thomas Guettler
New submission from Thomas Guettler: The current argparse documentation is not easy to read people new to python. http://docs.python.org/dev/library/argparse.html#choices {{{ current: parser.add_argument('foo', choices='abc') }}} Please make this more explicit: {{{ better:

[issue444582] Finding programs in PATH, adding shutil.which

2013-01-13 Thread Thomas Kluyver
Thomas Kluyver added the comment: The 'short circuit' appears to do what I'd consider the wrong thing when an executable file of the same name exists in the working directory. i.e. which('setup.py') can return 'setup.py', even though running 'setu

[issue16957] shutil.which() shouldn't look in working directory on unix-y systems

2013-01-13 Thread Thomas Kluyver
New submission from Thomas Kluyver: There's a 'short circuit' in shutil.which(), described as 'If we're given a full path which matches the mode and it exists, we're done here.' It also matches if an executable file of the same name is present in the working

[issue16957] shutil.which() shouldn't look in working directory on unix-y systems

2013-01-17 Thread Thomas Kluyver
Thomas Kluyver added the comment: I've added a patch with my suggested fix, as well as a test for this. test_shutil all passes on Linux - I haven't run the tests on Windows. -- keywords: +patch Added file: http://bugs.python.org/file28761/shutil_which

[issue16957] shutil.which() shouldn't look in working directory on unix-y systems

2013-01-18 Thread Thomas Kluyver
Thomas Kluyver added the comment: That makes sense - foo/setup.py can be run from the working directory, but you can't refer to subdirectories on $PATH like that. I've added a revised version of the patch. -- Added file: http://bugs.python.org/file28763/shutil_which_

[issue16957] shutil.which() shouldn't look in working directory on unix-y systems

2013-01-18 Thread Thomas Kluyver
Thomas Kluyver added the comment: Yes, as far as I know, ./script works in the same way as dir/script - from the current directory, but not from $PATH. The first test added is for the case I reported - which('script') shouldn't look in the current directory on Unix. The second

[issue8478] tokenize.untokenize first token missing failure case

2013-01-23 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue8478> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17028] launcher

2013-01-25 Thread Thomas Heller
New submission from Thomas Heller: The python launcher does not parse the shebang if arguments for the Python interpreter are given on the command line. For example: py.exe test.py # uses shebang line py.exe -u test.py # does NOT use shebang line The attached patch fixes this

[issue16224] tokenize.untokenize() misbehaves when moved to "compatiblity mode"

2013-01-25 Thread Thomas Kluyver
Thomas Kluyver added the comment: I think this is a duplicate of #8478. -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue16224> ___ ___ Pytho

[issue8478] tokenize.untokenize first token missing failure case

2013-01-25 Thread Thomas Kluyver
Thomas Kluyver added the comment: #16224 appears to be a duplicate. There seem to be several quite major issues with untokenize - see also #12691 - with patches made to fix them. Is there anything I can do to help push these forwards

[issue17028] launcher does not read shebang line when arguments are given

2013-01-25 Thread Thomas Heller
Changes by Thomas Heller : -- title: launcher -> launcher does not read shebang line when arguments are given ___ Python tracker <http://bugs.python.org/issu

[issue12691] tokenize.untokenize is broken

2013-01-28 Thread Thomas Kluyver
Thomas Kluyver added the comment: Is there anything I can do to push this forwards? I'm trying to use tokenize and untokenize in IPython, and for now I'm going to have to maintain our own copies of it (for Python 2 and 3), because I keep running into problems with the standard libr

[issue17061] tokenize unconditionally emits NL after comment lines & blank lines

2013-01-28 Thread Thomas Kluyver
New submission from Thomas Kluyver: The docs describe the NL token as "Token value used to indicate a non-terminating newline. The NEWLINE token indicates the end of a logical line of Python code; NL tokens are generated when a logical line of code is continued over multiple physical

[issue16509] sqlite3 docs do not explain check_same_thread

2013-01-28 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue16509> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17028] launcher does not read shebang line when arguments are given

2013-01-29 Thread Thomas Heller
Thomas Heller added the comment: Hope it is ok to assign this to you, vinay. -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker <http://bugs.python.org/issu

<    8   9   10   11   12   13   14   15   16   17   >