[issue20332] Argument Clinic docs do not list support for the 'l' format

2014-01-22 Thread Tal Einat
Tal Einat added the comment: See documentation patch for this issue attached to issue20346 (a duplicate of this). -- nosy: +taleinat ___ Python tracker ___ _

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Tal Einat
Tal Einat added the comment: I thought AC was how all new modules were supposed to be written. If so, the example modules should definitely use AC! Also note that once the generated code is in separate files, the code in the origin files will be simpler and clearer. -- __

[issue18695] os.statvfs() not working well with unicode paths

2014-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: While I'm at it I'm going to fix also mkfifo(), mknod() and others. Hold on a bit more. -- ___ Python tracker ___ __

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: This problem been independently rediscovered by people converting code to Argument Clinic. A Python signature can't express these semantics, where a parameter behaves differently depending on whether it's passed in by keyword or by reference. So Argument Clinic

[issue18695] os.statvfs() not working well with unicode paths

2014-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ok, patch in attachment fixes mkfifo(), mknod() and statvfs() and also includes Unicode tests for all os module's path-related functions. -- Added file: http://bugs.python.org/file33634/issue18695-3.patch ___ Pyth

[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic

2014-01-22 Thread Nadeem Vawda
Nadeem Vawda added the comment: The bz2 patch looks good to me, aside from a nit with the docstring for BZ2Compressor.__init__. The lzma patch produces a bunch of test failures for me. It looks like the __init__ methods for LZMACompressor and LZMADecompressor aren't accepting keyword args:

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: > int(or_none=True) ? Yes, that is a different name that seems to mean much the same thing. > Hmm, do we have a getargs.h ? No. Would it help if I attached the output of "ls Include" to this issue? > > > - boolean fields can be "char" instead of "int" (and

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > int(or_none=True) ? > > Yes, that is a different name that seems to mean much the same thing. and which is much more understandable by a Python developer. > Changing error to an char and moving it to the end would > save exactly zero bytes, because the com

[issue20332] Argument Clinic docs do not list support for the 'l' format

2014-01-22 Thread Brett Cannon
Changes by Brett Cannon : -- superseder: -> Argument Clinic docs do not list support for the 'l' format ___ Python tracker ___ ___ Py

[issue20332] Argument Clinic docs do not list support for the 'l' format

2014-01-22 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20346] Argument Clinic: missing entry in table mapping legacy convertors to real AC converters

2014-01-22 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20332] Argument Clinic docs do not list support for the 'l' format

2014-01-22 Thread Brett Cannon
Changes by Brett Cannon : -- superseder: Argument Clinic docs do not list support for the 'l' format -> Argument Clinic: missing entry in table mapping legacy convertors to real AC converters ___ Python tracker

[issue18695] os.statvfs() not working well with unicode paths

2014-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You have eaten "return NULL;" in posix_mkfifo. "from test.test_support import TESTFN_UNICODE, TESTFN_ENCODING" can fail. The simplest solution is just initialize them to None by default in test_support. If TESTFN_UNICODE.encode(TESTFN_ENCODING) fails (on POS

[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

2014-01-22 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Currently Python has non-intuitive behavior such that PYTHONWARNINGS environmental variable has higher priority than -W command line options. $ python3.4 -c '__import__("warnings").warn("xxx", DeprecationWarning)' $ python3.4 -Wd -c '__im

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: The vast majority of C modules are in third-party packages. I doubt that external modules will all use AC. xxmodule.c is about explaining the basic structure of a C extension. AC adds nothing to this and obfuscates (IMO) what is going on. --

[issue20340] -bb option does not have different behavior than -b option

2014-01-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-b

[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

2014-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed. -- nosy: +brett.cannon stage: -> needs patch type: behavior -> enhancement versions: +Python 3.5 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue18695] os.statvfs() not working well with unicode paths

2014-01-22 Thread STINNER Victor
STINNER Victor added the comment: > As far as Victor have doubts, we should ask Benjamin. Well, if you begin to patch some os functions, we will find much functions which don't support Unicode path. I prefer to consider that Python 2 doesn't support Unicode filenames to avoid bugs. If you wa

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2014-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: The POSIX locale tells Python 3 to use ASCII for all operating system interfaces, including the standard streams. This is an antiquated behaviour in the POSIX spec that Python 3 doesn't currently work around. Issue 19977 is a proposal to work around this limitat

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2014-01-22 Thread Nick Coghlan
Changes by Nick Coghlan : -- superseder: Use "surrogateescape" error handler for sys.stdin and sys.stdout on UNIX for the C locale -> ___ Python tracker ___ ___

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2014-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: My apologies, I completely misread the issue and thought it was related to displaying file names, rather than opening them. I believe Python 3.4 includes some changes in this area - are you in a position to retry this on the latest 3.4 beta release? --

[issue20356] fix formatting of positional-only parameters in inspect.Signature

2014-01-22 Thread Yury Selivanov
New submission from Yury Selivanov: Fix formatting of positional-only parameters to use '/' as a separator for them from other kinds. This patch also makes 'Parameter.name' required, as well as being a valid identifier (as per discussion with Larry, Nick and Brett). -- components: Libr

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Tal Einat
Tal Einat added the comment: Thanks, Stefan. I hadn't realized that the xx files were targeted mainly a third-party developers. In this case, I can see the sense in not converting them. I only wish someone had said something *before* I went ahead and converted them... -- ___

[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-22 Thread STINNER Victor
STINNER Victor added the comment: > This problem first appears with changeset 6e2089dbc5ad [1] that introduced > tracemalloc. It is still reproducible on today's tip. It looks like the bug doesn't come from the code of tracemalloc. I removed all functions, Python does still crash. No. The prob

[issue11077] Tkinter is not thread safe

2014-01-22 Thread Keith Bannister
Keith Bannister added the comment: Hi, I'm trying to make an application with GNU readline support, and some plots. But it seems that tkInter and raw_input don't play nicely. The attached script (18 lines) crashes immediately on my Mac with SIGABRT and outputs the following: $ python tk_v_ra

[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-22 Thread STINNER Victor
STINNER Victor added the comment: Oops, the original code is: --- /* Pack the frame_t structure to reduce the memory footprint on 64-bit architectures: 12 bytes instead of 16. This optimization might produce SIGBUS on architectures not supporting unaligned memory accesses (64-bit IPS CPU

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: > I only wish someone had said something *before* I went ahead and converted > them... Yeah, sorry. It's also just my personal opinion. BTW, xxmodule did not compile and there was a warning for xxsubtype. I just mention it in case these are AC issues. -

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Tal Einat
Tal Einat added the comment: The new patch still uses NULLABLE_PY_SSIZE_T_INITIALIZE instead of NULLABLE_INT_T_INITIALIZE in one place in int_converter.converter_init. -- ___ Python tracker ___

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: Fix attached. Might as well. -- Added file: http://bugs.python.org/file33639/larry.nullable.ints.draft.3 ___ Python tracker ___ ___

[issue14548] garbage collection just after multiprocessing's fork causes exceptions

2014-01-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 751371dd4d1c by Richard Oudkerk in branch '2.7': Issue #14548: Make multiprocessing finalizers check pid before http://hg.python.org/cpython/rev/751371dd4d1c -- ___ Python tracker

[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: For gcc, #pragma pack(n) apparently sets the new aligment for the entire compilation unit: http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas.html -- nosy: +skrah ___ Python tracker

[issue11077] Tkinter is not thread safe

2014-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: tk_v_raw.py is not obviously related to this issue. First, you only use tkinter in the main thread. Second, it works on Windows 7-64, 3.4 Idle. >>> Yes? > abc Got cmd abc Yes? > def Got cmd def Yes? > It also runs in the console on 2.7, 3.3, 3.4. The main prob

[issue11077] Tkinter is not thread safe

2014-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this still a problem with 2.7.6, which has a few hundred bug fixes since 2.7.1. -- ___ Python tracker ___ __

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2014-01-22 Thread Ned Deily
Ned Deily added the comment: I can reproduce a hang (but not a crash) when using a Python 2.7.x or 3.4.x built from source and linking with the OS X 10.9 system libsqlite3. Using the Apple-supplied Python 2.7 on 10.9 causes a crash in libdispatch. Using Python 2.7.6 or 3.4.0 from the current

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: When AC moves from internal-only tool to supported tool we'll want to convert the xx stuff. But yeah I reckon it makes sense to not convert them yet. The list of files is really more "here's the list of stuff to check out and convert if necessary". best jud

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2014-01-22 Thread Craig Silverstein
Craig Silverstein added the comment: Thanks -- we managed to work around it by removing the tkinter dependency, so this isn't time-critical for us. It is curious, though. One thing I forgot to mention before is that playing around with the hung process in gdb, it seems like sqlite was waiting

[issue20356] fix formatting of positional-only parameters in inspect.Signature

2014-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: One more patch revision: added versionchanged directive for the inspect.Parameter class docs. -- Added file: http://bugs.python.org/file33640/pos_only_format_02.patch ___ Python tracker

[issue20357] Mention buildbots in the core dev section of the devguide

2014-01-22 Thread Nick Coghlan
New submission from Nick Coghlan: Just a note to myself to fix this omission :) -- assignee: ncoghlan messages: 208876 nosy: ncoghlan priority: normal severity: normal status: open title: Mention buildbots in the core dev section of the devguide ___ P

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-22 Thread Vajrasky Kok
Vajrasky Kok added the comment: Thanks, Serhiy, for the pointer. Now, I am able to convert the method using _PyEval_SliceIndex function. Sorry, Larry. I used optional groups in __init__ because I didn't know about unspecified. Here is the updated patch for listobject. One thought, for list.in

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-22 Thread Christopher Welborn
Christopher Welborn added the comment: Ram Rachum (and to whom it may concern): This patch was missing the size argument for readlines(), and it did not match the overall style of pathlib.py. (using ''' instead of """, and other docstring style). It also clobbered the builtin 'file'. I've att

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-22 Thread Christopher Welborn
Christopher Welborn added the comment: Sorry Antoine, I should've done my homework. I didn't realize 'to whom it may concern' is actually you. :) -- ___ Python tracker ___ _

[issue17390] display python version on idle title bar

2014-01-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset bcfbab86f49a by Terry Jan Reedy in branch '2.7': Issue #17390: Add Python version to Idle editor window title bar. http://hg.python.org/cpython/rev/bcfbab86f49a New changeset b26db63bb931 by Terry Jan Reedy in branch '3.3': Issue #17390: Add Python

[issue17390] display python version on idle title bar

2014-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Edmond and Kent, thanks for the patch. Ezio, thanks for re-opening. After testing the patch with and without 'Editor', I preferred without. It is slightly redundant and noisy, especially when editing EditorWindow.py ;-). Also, Windows 7 stacks icons for windo

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2014-01-22 Thread Ben Alpert
Changes by Ben Alpert : -- nosy: +spicyj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue20345] Better logging defaults

2014-01-22 Thread Arne Babenhauserheide
Arne Babenhauserheide added the comment: I do not think it is necessary to change the defaults, but I do think that it would help users of python. In the usecase of bigger applications, the default logging format does not matter: the overhead of logging.basicConfig() only happens once while th

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-22 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch for floatobject. I did not convert 2 sites. The first is the round method which clinic explicitly does not support. The second one is the new method. This is the snippet of new method: float_new(PyTypeObject *type, PyObject *args, PyObject *kwd

<    1   2