[issue16396] Importing ctypes.wintypes on Linux gives a traceback

2016-12-28 Thread Mike Place
Mike Place added the comment: +1 to getting this patch in. The fact that this raises a ValueError and not an ImportError is really annoying and we definitely see it as a bug. -- nosy: +Mike Place ___ Python tracker <http://bugs.python.

[issue29131] Calling printf from the cdll does not print the full string

2017-01-01 Thread mike peremsky
New submission from mike peremsky: I am going throught he Gray Hat Python book and installed Python 3.7 (32-bit) on a windows x64 machine. The following code will only print the first character of the passed string argument. The same code run on Python 2.7 will print the correct string value

[issue29131] Calling printf from the cdll does not print the full string

2017-01-02 Thread mike peremsky
mike peremsky added the comment: I appreciate the feedback, but as I had originally mentioned. I am following the "Gray Hat Python - Python Programming for Hackers and Reverse Engineers" book and was attempting to use Python 3 instead of Python 2 (as was used in the book). The cd

[issue29315] \b requires raw strings or to be escaped. Update docs with that hint?

2017-01-18 Thread Mike Lissner
New submission from Mike Lissner: I just ran into a funny corner case I imagine others are aware of. When you write "\b" in Python, it is a single character: "\x08". So if you try to write a regex like: words = '\b(.*)\b' That won't work. But using a raw st

[issue29504] blake2: compile error with -march=bdver2

2017-02-08 Thread Mike Gilbert
New submission from Mike Gilbert: When compiling python-3.6.0 with -march=bdver2, the blake2 module fails to build. In file included from /var/tmp/portage/dev-lang/python-3.6.0/work/Python-3.6.0/Modules/_blake2/impl/blake2s-round.h:70:0, from /var/tmp/portage/dev-lang/python

[issue29504] blake2: compile error with -march=bdver2

2017-02-08 Thread Mike Gilbert
Mike Gilbert added the comment: Downstream bug report: https://bugs.gentoo.org/show_bug.cgi?id=608586 -- ___ Python tracker <http://bugs.python.org/issue29

[issue12067] Doc: remove errors about mixed-type comparisons.

2013-03-08 Thread Mike Hoy
Mike Hoy added the comment: Considering that the docs have changed does this issue still need to be open? -- ___ Python tracker <http://bugs.python.org/issue12

[issue17387] Error in C API documentation of PySequenceMethods

2013-03-08 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue17387> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17387] Error in C API documentation of PySequenceMethods

2013-03-08 Thread Mike Hoy
Mike Hoy added the comment: Looking through Include/object.h I see that sq_slice is now: void *was_sq_slice. Can anyone provide any clarification as to where I can find info about sq_slice? -- ___ Python tracker <http://bugs.python.org/issue17

[issue17387] Error in C API documentation of PySequenceMethods

2013-03-09 Thread Mike Hoy
Mike Hoy added the comment: I was looking at 3.4 files. You're right it is in 2.7. Guess you have all the info you need to make a patch for it then? ssizessizeargfunc PySequenceMethods.sq_slice It passes the lower and upper bound and expects back a subsequence. Or is there more to it

[issue10740] sqlite3 module should allow DDL statements in transactions

2013-04-04 Thread mike bayer
Changes by mike bayer : -- nosy: +zzzeek ___ Python tracker <http://bugs.python.org/issue10740> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-13 Thread Mike Milkin
Mike Milkin added the comment: This patch adds better exception messages. If any label other then the last is empty or is too long the request is added to the exception message. If the last label is over 64, the label is added to the exception message -- keywords: +patch nosy

[issue11957] re.sub confusion between count and flags args

2013-04-13 Thread Mike Milkin
Mike Milkin added the comment: I like option #2, and I was thinking of working on it today, poke me if anyone has a problem with this. -- nosy: +mmilkin ___ Python tracker <http://bugs.python.org/issue11

[issue11957] re.sub confusion between count and flags args

2013-04-13 Thread Mike Milkin
Mike Milkin added the comment: There is no sane way to issue a warning without changing the signature and we don't want to change the signature without issuing a deprecation warning for the function, so sadly option 3 is the only way for this to work, (Im going to not touch this till

[issue11957] re.sub confusion between count and flags args

2013-04-13 Thread Mike Milkin
Mike Milkin added the comment: We could do that but we would be changing the signature before adding the warning -- ___ Python tracker <http://bugs.python.org/issue11

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-13 Thread Mike Milkin
Mike Milkin added the comment: Made changes to to the tests and made changes to the error messages. I think decode() is valid since the input is already ascii encoded. -- Added file: http://bugs.python.org/file29834/Issue9682-full.patch ___ Python

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-14 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue17668> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-14 Thread Mike Milkin
Mike Milkin added the comment: I did not mean to take the decode out of the previos patch. Sorry for the spam. -- Added file: http://bugs.python.org/file29850/Issue9682-full.patch ___ Python tracker <http://bugs.python.org/issue9

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-14 Thread Mike Milkin
Changes by Mike Milkin : Removed file: http://bugs.python.org/file29834/Issue9682-full.patch ___ Python tracker <http://bugs.python.org/issue9682> ___ ___ Python-bug

[issue17353] Plistlib outputs empty data tags when deeply nested

2013-04-14 Thread Mike Milkin
Mike Milkin added the comment: Looks like plistlib.writePlistToString is no loger in the plistlib. -- nosy: +mmilkin ___ Python tracker <http://bugs.python.org/issue17

[issue17353] Plistlib outputs empty data tags when deeply nested

2013-04-14 Thread Mike Milkin
Mike Milkin added the comment: Yep you are correct. >>> plistlib.readPlistFromBytes(plistlib.writePlistToBytes({'test': plistlib.Data(b'aa')})) {'test': Data(b'aa')} >>> plistlib.rea

[issue17353] Plistlib outputs empty data tags when deeply nested

2013-04-16 Thread Mike Milkin
Mike Milkin added the comment: Adding tests. -- Added file: http://bugs.python.org/file29894/issue-17357-tests.txt ___ Python tracker <http://bugs.python.org/issue17

[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-18 Thread Mike Lundy
New submission from Mike Lundy: The changed merged from http://bugs.python.org/issue16168 causes a regression in SysLogHandler behavior. The socktype of /dev/log is dependent on syslog configuration, and the fallback behavior (trying SOCK_DGRAM and then SOCK_STREAM if the former failed) was

[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-20 Thread Mike Lundy
Mike Lundy added the comment: It doesn't fix it unless I change the configuration (and in some cases the code) for every SyslogHandler across all of our projects, plus every single library we use. Google around For "SysLogHandler /dev/log socktype" and then compare with &quo

[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-20 Thread Mike Lundy
Mike Lundy added the comment: On top of your patch? Yeah, I think so. (I wrote it the way I did so it could handle syslog configuration changes, but that's kind of an uncommon case). Thanks! -- ___ Python tracker <http://bugs.python.org/is

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-21 Thread Mike Milkin
Mike Milkin added the comment: Sure ill modify the patch, thanks for the feedback. -- ___ Python tracker <http://bugs.python.org/issue9682> ___ ___ Python-bug

[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-21 Thread Mike Lundy
Mike Lundy added the comment: I've tested in our full dev setup, and it seems to work fine; I've also tested on my laptop, no problems there either. Unfortunately, that's python 2.7.4 in both cases. I don't really have a python3 setup I

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Mike Milkin added the comment: There are a few of interesting parts. 1.) I noticed that the ToASCII class is not tested. 2.) I had some unreachable branches due to concatenation of constant variable ace_prefix. 3) I also found it weird that we only check the max of labels[-1], but decided

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Changes by Mike Milkin : Removed file: http://bugs.python.org/file29850/Issue9682-full.patch ___ Python tracker <http://bugs.python.org/issue9682> ___ ___ Python-bug

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Changes by Mike Milkin : Removed file: http://bugs.python.org/file29984/Issue9682.patch ___ Python tracker <http://bugs.python.org/issue9682> ___ ___ Python-bugs-list m

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Changes by Mike Milkin : Added file: http://bugs.python.org/file29985/Issue9682-42213.patch ___ Python tracker <http://bugs.python.org/issue9682> ___ ___ Python-bug

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-27 Thread Mike Milkin
Mike Milkin added the comment: Dave, let me know what you think of the tests, ill fix the rest of your comments. -- ___ Python tracker <http://bugs.python.org/issue9

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-05-05 Thread Mike Milkin
Mike Milkin added the comment: Moved the conditional logic out of the method. There are no tests for ToASCII function and I was not comfortable making changes to it without adding tests. -- Added file: http://bugs.python.org/file30139/Issue9682-5513.patch

[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'

2014-10-16 Thread mike bayer
Changes by mike bayer : -- nosy: +zzzeek ___ Python tracker <http://bugs.python.org/issue14847> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21759] URL Typo in Documentation FAQ

2014-11-02 Thread Mike Short
Changes by Mike Short : -- nosy: +Mike.Short ___ Python tracker <http://bugs.python.org/issue21759> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Mike Short
Changes by Mike Short : -- nosy: +Mike.Short ___ Python tracker <http://bugs.python.org/issue22317> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Mike Short
Changes by Mike Short : Added file: http://bugs.python.org/file37116/argparse27.patch ___ Python tracker <http://bugs.python.org/issue22317> ___ ___ Python-bugs-list m

[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Mike Short
Mike Short added the comment: I am uploading patches for both 2.7 as well as latest (3.x). I only added the action verbiage itself in, but would it be beneficial to also add in links to more detailed descriptions similar to what is done in ArgumentParser.add_argument earlier in the argparse

[issue22864] Add filter to multiprocessing.Pool

2014-11-13 Thread Mike Drob
New submission from Mike Drob: Being able to use a pool to easily run 'map' over an iterable is very powerful, but it would also be nice to run 'filter' (or potentially 'ifilter' or 'filter_async', in keeping with the patterns already present). -

[issue22956] Improved support for prepared SQL statements

2014-12-18 Thread mike bayer
Changes by mike bayer : -- nosy: +zzzeek ___ Python tracker <http://bugs.python.org/issue22956> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22758] Regression in Python 3.2 cookie parsing

2014-12-26 Thread Mike Gilbert
Changes by Mike Gilbert : -- nosy: +floppymaster ___ Python tracker <http://bugs.python.org/issue22758> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22956] Improved support for prepared SQL statements

2015-01-04 Thread mike bayer
mike bayer added the comment: prepared statements are, in proportion to the typical speed issues in Python (see my comparison benchmark at https://mail.python.org/pipermail/db-sig/2014-December/006147.html) a fairly small optimization that the DBAPI already allows for in an implicit sense

[issue23156] Update tix install information in tkinter tix chapter of doc

2015-01-06 Thread Mike Basca
Mike Basca added the comment: Hi, I'm the original poster in the stack-exchange link. Based on your responses, It seems Ttk is the way to go if you're on Mac OSX 64-bit. Thanks for your time and input. Really appreciate it! -- nos

[issue23288] subprocess.Popen close_fds behaviour differs between 3.2 and 3.4

2015-01-21 Thread Mike Sampson
New submission from Mike Sampson: I'm seeing differing behaviour with subprocess.Popen(..., close_fds = False) between 3.2 and 3.4. The docs don't say this is meant to be the case as far as I can see. Python 3.2.3 on Debian Wheezy = >>>

[issue23288] subprocess.Popen close_fds behaviour differs between 3.2 and 3.4

2015-01-21 Thread Mike Sampson
Mike Sampson added the comment: Ah, got it. Didn't see the note on the os.pipe() docs. Thanks. Closing. Sorry for the noise. -- ___ Python tracker <http://bugs.python.org/is

[issue23288] subprocess.Popen close_fds behaviour differs between 3.2 and 3.4

2015-01-21 Thread Mike Sampson
Changes by Mike Sampson : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue23288> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24289] can't start Python3 due to ImportError of copy_reg

2015-05-26 Thread Mike Basca
New submission from Mike Basca: Hello, I recently upgraded pip and pip3 and now I can't start python3. This is the Traceback I receive when I started python 3.4.3 (python2.7.10 is fine). localhost:PP4E Mike$ python3 Failed to import the site module Traceback (most recent call last):

[issue24293] Windows installer unreadable with std/custom themes

2015-05-26 Thread Mike Miller
New submission from Mike Miller: The new Windows installer displays itself with an HTML (or perhaps skinned) interface with hard-coded white background which does not adhere to the desktop GUI color scheme chosen by the user. Many times this is only an aesthetic problem, but it may cause the

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-05-27 Thread Mike Frysinger
Changes by Mike Frysinger : -- nosy: +vapier ___ Python tracker <http://bugs.python.org/issue24303> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24293] Windows installer unreadable with std/custom themes

2015-05-27 Thread Mike Miller
Mike Miller added the comment: Thanks. -- ___ Python tracker <http://bugs.python.org/issue24293> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-05-27 Thread Mike Gilbert
Changes by Mike Gilbert : -- nosy: +floppymaster ___ Python tracker <http://bugs.python.org/issue24303> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-05-29 Thread Mike Frysinger
Mike Frysinger added the comment: we hit this problem daily in Chromium OS's build farm because we use pid namespaces heavily -- ___ Python tracker <http://bugs.python.org/is

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-06-02 Thread Mike Frysinger
Mike Frysinger added the comment: the original report on our side w/bunches of tracebacks: http://crbug.com/481223 with that traceback in hand, it's pretty trivial to write a reproduction :). attached! i couldn't figure out how to make it work w/out completely execing a new python

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-06-02 Thread Mike Frysinger
Mike Frysinger added the comment: also, it looks like this bug is in python-3.3. not sure what the status of that branch is, but maybe the backport from 3.4 would be easy ? -- ___ Python tracker <http://bugs.python.org/issue24

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Mike Lundy
New submission from Mike Lundy: There's a slightly odd edge case which can be summarized as follows: from enum import Enum class Bool(Enum): Yep = True Nope = False for value in Bool: print('%18r is %r' % (value, bool(value))) =

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Mike Lundy
Mike Lundy added the comment: @r.david.murray man you're fast :) Sorry, realized I forgot to actually run the tests for 3.5 and 3.4, I'd only run them for master (I've now run them for 3.5 and 3.4 now, too). -- keywords: +patch Added file: http://bugs.python.org/file4

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Mike Lundy
Mike Lundy added the comment: (I should note that I just recently signed the contributor agreement, not that this a particularly complex fix, but it hasn't propagated to my profile yet). -- ___ Python tracker <http://bugs.python.org/is

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Mike Lundy
Mike Lundy added the comment: @serhiy.storchaka: It's somewhat of a special case, to be sure. However, I do think it's justified to put it into the base (rather than a user type) for three reasons: 1) It makes IntEnum and Enum consistent. IntEnum actually already handles this case

[issue24935] LDSHARED is not set according when CC is set.

2015-08-25 Thread Mike Frysinger
Changes by Mike Frysinger : -- nosy: +vapier ___ Python tracker <http://bugs.python.org/issue24935> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24935] LDSHARED is not set according when CC is set.

2015-08-25 Thread Mike Frysinger
Mike Frysinger added the comment: looks like the patch was reversed, but otherwise should be clear what we're going for -- ___ Python tracker <http://bugs.python.org/is

[issue19372] configure and compile problems with older CentOS releases

2015-10-13 Thread Mike Frysinger
Mike Frysinger added the comment: time to close then ? -- nosy: +vapier ___ Python tracker <http://bugs.python.org/issue19372> ___ ___ Python-bugs-list mailin

[issue18148] Make of Python 3.2.2 fails on Solaris SPARC

2015-10-13 Thread Mike Frysinger
Mike Frysinger added the comment: if the current builds fail, please make sure to include the config.log file as that includes a cross-compile test for this setting -- nosy: +vapier ___ Python tracker <http://bugs.python.org/issue18

[issue25397] improve ac_cv_have_long_long_format GCC fallback

2015-10-13 Thread Mike Frysinger
New submission from Mike Frysinger: the ac_cv_have_long_long_format test has a nice compile-time fallback for gcc based compilers: CFLAGS="$CFLAGS -Werror -Wformat" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], [[ char *buffer;

[issue24421] Race condition compiling Modules/_math.c

2015-11-11 Thread Mike Gilbert
Changes by Mike Gilbert : -- nosy: +floppymaster ___ Python tracker <http://bugs.python.org/issue24421> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25942] subprocess.call SIGKILLs too liberally

2015-12-24 Thread Mike Pomraning
New submission from Mike Pomraning: Python 3.3 introduces timeout support in subprocess.call, implemented by sending a SIGKILL if the Popen.wait is interrupted by a TimeoutExpired exception. However, the "except" clause is too broad, and will, for instance, trigger on a Keyboar

[issue25957] sockaddr_l2 lacks CID, address type (AF_BLUETOOTH sockets)

2015-12-26 Thread Mike Ryan
New submission from Mike Ryan: The AF_BLUETOOTH socket type lacks support for specifying CID and address type in sockaddr_l2. These structure members have been present since 2009 and 2012 respectively: https://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=3de95535 https://git.kernel.org

[issue25957] sockaddr_l2 lacks CID, address type (AF_BLUETOOTH sockets)

2015-12-28 Thread Mike Ryan
Mike Ryan added the comment: AF_BLUETOOTH also lacks support for hci_channel in sockaddr_hci for BTPROTO_HCI sockets: https://git.kernel.org/cgit/bluetooth/bluez.git/tree/lib/hci.h?h=5.37#n2340 This feature has been present in BlueZ since 2010: https://git.kernel.org/cgit/bluetooth/bluez.git

[issue25942] subprocess.call SIGKILLs too liberally

2015-12-28 Thread Mike Pomraning
Mike Pomraning added the comment: If I understand correctly, the _try_wait mechanics (or 3.5's syscall behavior) already handle EINTR the way we way: ignore it and try wait()ing again. So, this patch would kill only on a timeout, and never on another error like Ctrl

[issue17633] zipimport's handling of namespace packages is incorrect

2016-01-04 Thread Mike Romberg
Mike Romberg added the comment: I have expanded on the issue17633-2 patch to fix an issue with the enumerated value returned by find_loader(). The patch (issue17633-3.diff) is against 3.5.1. I have also added more test cases that cover spreading a namespace package across two zip files

[issue17633] zipimport's handling of namespace packages is incorrect

2016-01-04 Thread Mike Romberg
Mike Romberg added the comment: Yes. I can do this. I've not used hg before. But I bet I can figure it out. I'm assuming hg has a diff/pach genterator of some kind ('hg diff' perhaps). Lemme try and find the hg repository

[issue17633] zipimport's handling of namespace packages is incorrect

2016-01-04 Thread Mike Romberg
Mike Romberg added the comment: Try issue17633-hg.diff. Caution it was made after literally minutes of experience with hg. :) I checked out the source applied the changes, compiled and ran 'make test' (gdb still fails), and did an hg commit. The diff was made following the in

[issue17633] zipimport's handling of namespace packages is incorrect

2016-01-09 Thread Mike Romberg
Mike Romberg added the comment: This patch modifies issue17633-hg.diff by adding changes suggested by the reviewers. Note. I did cleanup the use of __import__ outside of the area involved with issue17633 as it seemed low risk. The tests for issue17633 (and the refactored doTest/makeZip

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-01-11 Thread Mike Taylor
Mike Taylor added the comment: I can reproduce on Chrome and Firefox Nightly -- Carol, if I'd like to write a patch where would I do that? I see https://github.com/python/pythondotorg, but am not sure that's the right repo. Thanks! -- nosy: +M

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2016-02-10 Thread Mike Frysinger
Mike Frysinger added the comment: i don't feel strongly about either version -- ___ Python tracker <http://bugs.python.org/issue24303> ___ ___ Python-bugs-l

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-02-11 Thread Mike Taylor
Mike Taylor added the comment: Great, thanks Ezio! Will take a stab now. -- ___ Python tracker <http://bugs.python.org/issue24712> ___ ___ Python-bugs-list mailin

[issue22062] Fix pathlib.Path.(r)glob doc glitches.

2016-02-15 Thread Mike Short
Changes by Mike Short : -- keywords: +patch Added file: http://bugs.python.org/file41932/pathlib.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22062] Fix pathlib.Path.(r)glob doc glitches.

2016-02-15 Thread Mike Short
Changes by Mike Short : Added file: http://bugs.python.org/file41933/pathlib.py.patch ___ Python tracker <http://bugs.python.org/issue22062> ___ ___ Python-bugs-list m

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-18 Thread Mike Kaplinskiy
New submission from Mike Kaplinskiy: For the purposes of pex (https://github.com/pantsbuild/pex), it would be useful to allow calling run_module without sys.argv[0] changing. In general, this behavior is useful if the script intends to re-exec itself (so it needs to know the original

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-20 Thread Mike Kaplinskiy
Changes by Mike Kaplinskiy : -- keywords: +patch Added file: http://bugs.python.org/file41981/patch.diff ___ Python tracker <http://bugs.python.org/issue26

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-22 Thread Mike Kaplinskiy
Mike Kaplinskiy added the comment: Looks like by signed CLA just made it through, so that should be settled. For the other bugs, it seems that overloading run_module & run_path seems to be getting a bit cumbersome, so it might make sense to have some sort of Runner object that has things

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-23 Thread Mike Kaplinskiy
Mike Kaplinskiy added the comment: So how might I get this patch committed? :) -- ___ Python tracker <http://bugs.python.org/issue26388> ___ ___ Python-bugs-list m

[issue26511] Add link to id() built-in in comparison operator documentation for "is"

2016-03-08 Thread Mike Vertolli
New submission from Mike Vertolli: Here's the doc: https://docs.python.org/2/reference/expressions.html#is It would be great if this line: "The operators is and is not test for object identity: x is y is true if and only if x and y are the same object. x is not y yields the inv

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-03-23 Thread mike bayer
mike bayer added the comment: @Rian - implicit transactions are part of the DBAPI spec. Looking at the original description, the purpose of this bug is to not *end* the transaction when DDL is received. So there's no solution for "database is locked" here, other than p

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-03-23 Thread mike bayer
mike bayer added the comment: @rian - your issue for this is http://bugs.python.org/issue9924. The implicit BEGIN in all cases will probably never be the default but we do need an option for this to be the case, in order to support SERIALIZABLE isolation

[issue26653] bisect raises a TypeError when hi is None

2016-03-27 Thread Mike Lenzen
New submission from Mike Lenzen: >>> bisect.bisect([1, 2, 3], 1, hi=None) TypeError: 'NoneType' object cannot be interpreted as an integer I'm assuming this is an error in the C implementation because the Python source has: if hi is None: hi = len(a

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2016-03-29 Thread Mike Lissner
Mike Lissner added the comment: This is an old issue, but where I run into it frequently is when I use the format function and string interpolation. For example, this throws a SyntaxError: "The name of the person is {name_first} {name_last}".format( **my_obj.__dict__, ) Becau

[issue26653] bisect raises a TypeError when hi is None

2016-03-30 Thread Mike Lenzen
Mike Lenzen added the comment: Sounds good, but then I think the docs could be clearer about this. I scratched my head at the function signature bisect.bisect_left(a, x, lo=0, hi=len(a)) because it isn't valid (in Python, maybe in C?), so I checked the source and saw hi=None. I'm no

[issue26690] PyUnicode_Decode breaks when Python / sqlite3 is built with sqlite 3.12.0

2016-04-04 Thread mike bayer
New submission from mike bayer: So I really don't know *where* the issue is in this one, because I don't know enough about the different bits. Step 1: Save this C program to demo.c: #include static PyObject * unicode_thing(PyObject *self, PyObject *value) { char *str;

[issue26690] PyUnicode_Decode breaks when Python / sqlite3 is built with sqlite 3.12.0

2016-04-04 Thread mike bayer
mike bayer added the comment: i realized this is probably with my build overall. let me do some more testing and ill reopen if i can confirm this more closely. -- resolution: -> works for me status: open -> closed ___ Python tracker

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-04-06 Thread Mike Kaplinskiy
Mike Kaplinskiy added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue26388> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25320] unittest loader.py TypeError when code directory contains a socket

2016-04-07 Thread Mike Miller
Mike Miller added the comment: Just as a side note, the patch also works for soft links that point to files that don't exist. Thanks for getting this fixed! -- nosy: +Mike Miller ___ Python tracker <http://bugs.python.org/is

[issue25942] subprocess.call SIGKILLs too liberally

2016-04-12 Thread Mike Pomraning
Mike Pomraning added the comment: Yes, standard UNIX terminal behavior is to map Ctrl-C to a SIGINT sent to the foreground process group, so that every member of a pipeline (e.g.) or hidden helper children processes can be terminated by the interactive user and have the chance to clean up

[issue25942] subprocess.call SIGKILLs too liberally

2016-04-14 Thread Mike Pomraning
Mike Pomraning added the comment: #2 and #4 are the only predictable and palatable options, I think. Ignore the patch that started this issue. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25942] subprocess.call SIGKILLs too liberally

2016-04-19 Thread Mike Pomraning
Mike Pomraning added the comment: Re: #2, I'd rather have a zombie than a hard kill on a child whose code I perhaps don't control. Zombies are a fact of life (er, a fact of undeath?) in UNIX process management, and are the historical and IMHO expecte

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-05-20 Thread Mike Taylor
Mike Taylor added the comment: OK, so uh, somehow a few months escaped me before I could get to this. >_> (I've also just signed the Contributor Agreement with the PSF) -- keywords: +patch Added file: http://bugs.python.org/file42917/docs-si

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-05-20 Thread Mike Taylor
Mike Taylor added the comment: The bug for Chrome to ship support of position: sticky is here: https://bugs.chromium.org/p/chromium/issues/detail?id=231752 -- it's in active development. But this patch fixes the jerky sidebar in Firefox as

[issue22933] Misleading sentence in doc for shutil.move

2015-03-21 Thread Mike Short
Changes by Mike Short : -- keywords: +patch Added file: http://bugs.python.org/file38627/shutil_2.7.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22933] Misleading sentence in doc for shutil.move

2015-03-21 Thread Mike Short
Changes by Mike Short : Added file: http://bugs.python.org/file38628/shutil_latest.patch ___ Python tracker <http://bugs.python.org/issue22933> ___ ___ Python-bugs-list m

[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__

2015-04-09 Thread mike bayer
mike bayer added the comment: hi Yury - I did sign it earlier today. It should have been sent off to the person that manages that, at least that's what the email receipt said. -- ___ Python tracker <http://bugs.python.org/is

[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__

2015-04-09 Thread mike bayer
mike bayer added the comment: > It would be great if the patch could be attached to the issue as a patch > file, including some tests. the mantra we all share. I'll take a look. -- ___ Python tracker <http://bugs.python.

<    1   2   3   4   5   6   7   >