[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

[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

[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

[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

[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

[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 ___ _

[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

[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

[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

[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

[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

[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 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

[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 ___ __

[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

[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

[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

[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 ___ ___

[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 ___

[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. -

[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

[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: > 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

[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... -- ___

[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

[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? --

[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: 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

[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

[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 ___

[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 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

[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

[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

[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 : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[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

[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

[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

[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:

[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

[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

[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: While I'm at it I'm going to fix also mkfifo(), mknod() and others. Hold on a bit more. -- ___ 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. -- __

[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 ___ _

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

2014-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Attached patch includes tests. I took test_sax.py as an example. -- Added file: http://bugs.python.org/file33633/issue18695-2.patch ___ Python tracker __

[issue20345] Better logging defaults

2014-01-22 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> wont fix status: open -> pending type: -> enhancement versions: +Python 3.5 ___ Python tracker ___ __

[issue20345] Better logging defaults

2014-01-22 Thread Vinay Sajip
Vinay Sajip added the comment: I don't think it is necessary or advisable to change the default, as it is very easy to provide your own format. As RDM has noted, this could affect backward compatibility. Furthermore, there are bound to be differing views of what an ideal default should be, so

[issue20351] Add doc examples for DictReader and DictWriter

2014-01-22 Thread Moritz Neeb
Changes by Moritz Neeb : -- nosy: +zormit ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

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

2014-01-22 Thread jan matejek
New submission from jan matejek: When compiling "make profile-opt", the instrumented python executable segfaults upon exit, even though it appears to run fine. This breaks the build process, because make evaluates the segfault as if the respective compilation step failed. GDB yields the follo

[issue20352] Add support for AUTH command to poplib

2014-01-22 Thread R. David Murray
R. David Murray added the comment: This is basically rfc 5034 support? Sounds like a good idea. I'm going to mark this issue as 'easy' because it isn't a whole lot of code, but for anyone who wants to tackle it, know that understanding the RFC and getting it *right* is not necessarily trivial

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-22 Thread Glenn Langford
Glenn Langford added the comment: The same bug also exists in concurrent.futures.as_completed(). The minimal fix suggested here also works, but the bigger fix suggested in issue #20297 is recommended for as_completed(). -- ___ Python tracker

[issue20338] Idle: increase max calltip width

2014-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch (for 3.4) which wraps long lines. Now you can display a tip for textwrap.TextWrapper. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file33632/idle_calltips_wrap.patch ___

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

2014-01-22 Thread Craig Silverstein
New submission from Craig Silverstein: Don't ask me how, but our code managed to combine multiprocessing, sqlite, and tkinter all in one app, and got a hanging behavior, though only on a particular OS. Removing any of these removes the hang. I filed this under tkinter, but the fault could we

[issue20352] Add support for AUTH command to poplib

2014-01-22 Thread Daniël van Eeden
New submission from Daniël van Eeden: I use 'AUTH PLAIN ' to login to a POP3 server with a proxy user. I can't use 'pass_()' as I need to supply a admin user and the user to proxy into. class adminpopserver(poplib.POP3): def auth(self, method, secret): return self._shortcmd('AUTH %s

[issue20348] Argument Clinic HOWTO listed multiple times in HOWTO index

2014-01-22 Thread Moritz Neeb
Moritz Neeb added the comment: Here's a patch that changes the headings in clinic.rst, such that only the first appears in the HOWTO listing. I also adapted the first according to the convention in http://docs.python.org/devguide/documenting.html#sections -- keywords: +patch nosy: +zor

[issue20351] Add doc examples for DictReader and DictWriter

2014-01-22 Thread Charles-Axel Dein
New submission from Charles-Axel Dein: IMO csv.DictWriter and csv.DictReader provides a nicer interface for complex CSV file. I see some people reinventing the DictReader and DictWriter pretty frequently, because when they rapidly scan the documentation all examples are about csv.reader and cs

[issue17390] display python version on idle title bar

2014-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume the OP only cared about the Shell Window, and that was fixed. I agree that submitted patches should not be ignored. I have decided I really want editor windows labelled as sometimes run the *same* file with more than one version, and it can be difficu

[issue20338] Idle: increase max calltip width

2014-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I think we can extend the limit (until implement wrapping). On my narrow monitor there is a room only for 120 character tip (when it starts right from left side of the screen), so I prefer to wrap long lines. In any case too long lines are not comfortab

[issue20338] Idle: increase max calltip width

2014-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: How about we extend the limit from 79 to say 120, to accommodate people who use longer docstring lines, and only wrap the signature line, when present, like the one for HTTPConnection, as the signature is the important information to include. --

[issue20350] Replace tkapp.split() to tkapp.splitlist()

2014-01-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch replaces errorprone uses of tkapp.split() to tkapp.splitlist(). * Variable.trace_vinfo(). Actually there are no difference between split() and splitlist(), because "trace vinfo" always returns a list of 2-element tuple of strings and none of

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

2014-01-22 Thread Stefan Krah
Stefan Krah added the comment: I think we should probably not convert xx*.c. They are for newcomers who will likely be confused by the additional information overload. -- nosy: +skrah ___ Python tracker ___

[issue17630] Create a pure Python zipfile/tarfile importer

2014-01-22 Thread Brett Cannon
Brett Cannon added the comment: Re-positioning to work with both tarfile and zipfile since tarfile's 'r' will transparently decompress as necessary. Might need to scale back some functionality to make it easily work with both formats. But since are both alternative storage solutions then some

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-22 Thread Brett Cannon
Brett Cannon added the comment: So those semantics have existed as long as PEP 302 has been around, which is Python 2.3 (that PEP itself is over a decade old), so changing them now would break code. And honestly I wouldn't change it anyway. On some filesystems, stat calls are extremely costly

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

2014-01-22 Thread Brett Cannon
Brett Cannon added the comment: So the docs don't mention this support anywhere. The 'l' format isn't listed in the table of legacy to Argument Clinic converters, nor is there a list of converters that only exist in Argument Clinic. So unless I read the section on return converters and inferre

[issue20349] Argument Clinic: error on __new__ or __init__ with no arguments

2014-01-22 Thread Tal Einat
New submission from Tal Einat: This is caused by the code "fields = list(parser_body_fields)" under "if new_or_init:" in CLanguage.output_templates(). 'parser_body_fields' is initialized to None and may not be set before the above mentioned code. Attached is a patch which replaces the line with

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-22 Thread Brett Cannon
Brett Cannon added the comment: Can't you at least say "you don't know how import works unless you're Canadian"? =) -- ___ 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: Attached complete conversion of Modules/xxlimited.c, Modules/xxmodule.c and Modules/xxsubtype.c. There are no tests for these and the code is not used by anything AFAIK, so I was extra careful and went over the diffs manually once everything was done. -- A

[issue20348] Argument Clinic HOWTO listed multiple times in HOWTO index

2014-01-22 Thread Brett Cannon
New submission from Brett Cannon: http://docs.python.org/3.4/howto/ Seems several sections are listed on their own in the index. -- assignee: larry components: Documentation messages: 208824 nosy: brett.cannon, larry priority: normal severity: normal status: open title: Argument Clinic

[issue20347] dir(__future__) gives segfault on OS X in 3.2 and 3.3

2014-01-22 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue18458. The crash is caused by an incompatible change introduced in OS X 10.9 to the Apple-supplied version of libedit's readline compatibility layer and can affect Python versions that dynamically link with the system libedit (not all do

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

2014-01-22 Thread Tal Einat
Tal Einat added the comment: Attached is a complete conversion of Modules/_randommodule.c. Three _random.Random methods were converted: seed, getrandbits and __new__. There's was an problem converting _random.Random.__new__. I overcame it cleanly and think this patch is good. Details about the

[issue20347] dir(__future__) gives segfault on OS X in 3.2 and 3.3

2014-01-22 Thread R. David Murray
Changes by R. David Murray : -- assignee: ronaldoussoren -> resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> python.org Interactive interpreter linked with libedit can segfault on future OS X ___ Python

[issue20347] dir(__future__) gives segfault on OS X in 3.2 and 3.3

2014-01-22 Thread STINNER Victor
STINNER Victor added the comment: > Python 2.7.5 (default, Aug 25 2013, 00:04:04) You should try the version 2.7.6 which contains a fix for OS X 10.9: http://www.python.org/download/releases/2.7.6/ -- nosy: +haypo, hynek, ned.deily ___ Python tracke

[issue20347] dir(__future__) gives segfault on OS X in 3.2 and 3.3

2014-01-22 Thread Christopher the Magnificent
New submission from Christopher the Magnificent: On OS X 10.9.1 This works: Python 2.7.5 (default, Aug 25 2013, 00:04:04) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import __future__ >>> dir(__futur

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

2014-01-22 Thread Tal Einat
New submission from Tal Einat: There is no entry for 'l', which maps to 'long' according to 'long_converter' in clinic.py. Patch attached for Doc/howto/clinic.rst. -- files: missing_long_legacy_converter.clinic.rst.patch keywords: patch messages: 208818 nosy: larry, taleinat priority:

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

2014-01-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> duplicate superseder: -> Argument Clinic does not support the 'l' format ___ Python tracker ___

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

2014-01-22 Thread Tal Einat
Changes by Tal Einat : -- assignee: -> docs@python components: +Build, Demos and Tools, Documentation nosy: +docs@python type: -> enhancement versions: +Python 3.4 ___ Python tracker _

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

2014-01-22 Thread R. David Murray
R. David Murray added the comment: Believe me, we are *well* aware of the issue that linux stores filenames as bytes. I agree that the inability to always transcode is an issue. That's why I'd like the opinion of someone who has studied this problem in more depth. -- nosy: +ncoghlan

[issue20345] Better logging defaults

2014-01-22 Thread R. David Murray
R. David Murray added the comment: Well, you can always call basicConfig yourself...that's kind of the point of it. I'm guessing the current output was chosen exactly because it is pretty much just a print of the input to the log method. But I don't have strong feelings about it. On the oth

[issue18300] script_helper._assert_python should set TERM='' by default.

2014-01-22 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file33623/issue18300_test_doctest.diff ___ Python tracker ___ ___ Python-bugs-li

[issue18300] script_helper._assert_python should set TERM='' by default.

2014-01-22 Thread Berker Peksag
Berker Peksag added the comment: Attached patch to set TERM='' by default in test.script_helper._assert_python. -- keywords: +patch nosy: +berker.peksag stage: needs patch -> patch review title: script_helper._asert_python should set TERM='' by default. -> script_helper._assert_python s

[issue20344] subprocess.check_output() docs misrepresent what shell=True does

2014-01-22 Thread R. David Murray
R. David Murray added the comment: This was discussed in issue 6760. There I advocated (and still advocate) option (3). Unfortunately it looks like our doc update in that issue actually *lost* the documentation for your option (2) that used to be there, though it wasn't exactly clear what it

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Tal Einat
Tal Einat added the comment: Another bug in the patch: In int_converter.__init__ in clinic.py, the patch adds: if not isinstance(self.default, int): fail("Illegal default value for int_converter") This fails if no default is specified, e.g. for positional only argument. The condition shou

[issue20344] subprocess.check_output() docs misrepresent what shell=True does

2014-01-22 Thread Tobias Klausmann
New submission from Tobias Klausmann: The subprocess docs state that the first argument can be either a string or an iterable that contains the program and arguments to run. It also points out that using shell=True allows for shell constructs. It does not mention a subtlety that is introduced

[issue20345] Better logging defaults

2014-01-22 Thread Arne Babenhauserheide
New submission from Arne Babenhauserheide: Currently the default operation of logging prints messages like the following: INFO:root: Milk found. This is close to a print-call, but not much more useful - especially not in small scripts. To make the default settings more useful to quick scripts,

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's not what it means. Python parameters are "optional" if they > have a default value. These parameters are "nullable", in the sense > that they can be either of a specific type or "None". (But "Noneable" > seemed like a bad name). They are not necessari

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: - the concept of a nullable thing in Python doesn't exist; why not "optional"? That's not what it means. Python parameters are "optional" if they have a default value. These parameters are "nullable", in the sense that they can be either of a specific type or "

[issue20341] Argument Clinic: add "nullable ints"

2014-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some things: - the concept of a nullable thing in Python doesn't exist; why not "optional"? - why is there a "error" field in the new structs? - the fact that the structs are defined in longobject.h looks bonkers - boolean fields can be "char" instead of "int" (a

[issue20293] pydoc fails with the "unspecified" default value

2014-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Without the "= unspecified" parameters will be non-optional. -- ___ Python tracker ___ ___ Python

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ncoghlan, skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20293] pydoc fails with the "unspecified" default value

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: > This is because in pure Python functions we have no enough > information. I believe than origin expression is more useful > in the help. That doesn't matter. inspect.Signature would have to change in order to provide the original expression, and it's not go

[issue20293] pydoc fails with the "unspecified" default value

2014-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Yes, that is how it must work. This is symmetric with pure Python functions: This is because in pure Python functions we have no enough information. I believe than origin expression is more useful in the help. Compare: >>> import re, inspect >>> p = re.c

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

2014-01-22 Thread Tal Einat
Tal Einat added the comment: Attached a patch converting deque.__init__ in Modules/_collectionsmodule.c, which completes the conversion of this file. This patch depends Larry's first patch in issue20341 (Argument Clinic: add "nullable ints"). This functionality is used to simplify the existing

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

2014-01-22 Thread Tal Einat
Tal Einat added the comment: Attached nearly complete conversion of Modules/_collectionsmodule.c. I've converted all functions using PyArg_* functions, including __new__ methods, but not deque.__init__. I'm attaching a separate patch for deque.__init__. -- Added file: http://bugs.pyth

[issue20293] pydoc fails with the "unspecified" default value

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: I missed the detail that you were working with a patch applied. I suspect the problem is, you misspelled one of the expressions you provided as a default value. Try str(inspect.signature(x)) on every function you converted. I bet one of them will throw an ex

[issue20293] pydoc fails with the "unspecified" default value

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: Yes, that is how it must work. This is symmetric with pure Python functions: >>> import inspect >>> import zlib >>> def foo(a=zlib.Z_DEFAULT_COMPRESSION): pass ... >>> str(inspect.signature(foo)) '(a=-1)' -- __

[issue20343] zipfile truncates extracted files

2014-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Christian. This bug already fixed in issue20048. Wait for Python 2.7.7 bugfix release. -- ___ Python tracker ___ __

[issue20343] zipfile truncates extracted files

2014-01-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed superseder: -> zipfile's readline() drops data in universal newline mode ___ Python tracker ___

  1   2   >