[issue23041] csv needs more quoting rules

2016-03-02 Thread Berker Peksag
Berker Peksag added the comment: I was thinking adding a more flexible API like: ... spamwriter = csv.writer(csvfile, quoting_callable=lambda field: field is not None) ... But that would require too much change in the csv module (or at least its implementation wouldn't be

[issue23041] csv needs more quoting rules

2016-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The csv module is already type-sensitive (with QUOTE_NONNUMERIC). I agree, that we shouldn't modify the csv module just for one user and one program. If a standard CVS library in Java (or other popular laguages) differentiates between empty string and null

[issue15795] Zipfile.extractall does not preserve file permissions

2016-03-02 Thread Mark Mikofski
Mark Mikofski added the comment: same problem in 2.7.5 on Oracle Linux 7.2 -- nosy: +bwanamarko ___ Python tracker ___

[issue25144] 3.5 Win install fails with "TARGETDIR"

2016-03-02 Thread Claude Chouinard
Claude Chouinard added the comment: To solve the problem with the variable TARGETDIR not being initialized, I called the installation program from the command shell and added the target dir option. c:\Users\\Downloads>python-3.5.1-amd64.exe TargetDir=c:\Python35 I also us the custom

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Jakub Stasiak
Jakub Stasiak added the comment: Glad I could help, thanks for merging! -- ___ Python tracker ___ ___

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread Eric Fahlgren
Eric Fahlgren added the comment: Barun, take a look at the latest version of the testfindlabels.py, see what you think. If it works for you, maybe move the test function into Lib/test/test_dis.py as part of the standard dis module tests. Still need to look at the code that's being tested

[issue23041] csv needs more quoting rules

2016-03-02 Thread Skip Montanaro
Skip Montanaro added the comment: Thanks for the update berker.peksag. I'm still not convinced that the csv module should be modified just so one user (sorry samwyse) can match the input format of someone's Java program. It seems a bit like trying to make the csv module type-sensitive. What

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-02 Thread Michael Felt
Michael Felt added the comment: Since you are looking, maybe look at whether it is also libreSSL compatible? -- nosy: +Michael.Felt ___ Python tracker

[issue26474] ctypes: Memory leak at malloc_closure.c

2016-03-02 Thread STINNER Victor
STINNER Victor added the comment: > malloc_closere.c We are talking about Modules/_ctypes/malloc_closure.c. > The items are being allocated in the more_core method using VirtualAlloc / > mmap. However they never get released. The allocation is only done once. I'm not sure that it can be

[issue26474] Memory leak at malloc_closure.c

2016-03-02 Thread John Snow
New submission from John Snow: malloc_closere.c holds a static list of items: free_list. The items are being allocated in the more_core method using VirtualAlloc / mmap. However they never get released. Here is the allocation code: #ifdef MS_WIN32 item = (ITEM *)VirtualAlloc(NULL,

[issue26460] datetime.strptime without a year fails on Feb 29

2016-03-02 Thread Andrej Antonov
Changes by Andrej Antonov : -- nosy: +polymorphm ___ Python tracker ___ ___

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25612] nested try..excepts don't work correctly for generators

2016-03-02 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___

[issue26473] Python 3.5 not run

2016-03-02 Thread Steve Dower
Steve Dower added the comment: It's unfortunately not so clear from the "minimum Vista" statement that WS2K3 is excluded, but if you follow the official statement ("supported by Microsoft") then you'll see that WS2K3 is no longer covered. Vista and Windows Server 2008 are the minimum

[issue26473] Python 3.5 not run

2016-03-02 Thread SilentGhost
SilentGhost added the comment: As the installer says and as mentioned in documentation a minimum supported versions is Windows Vista. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Alessandro, thank you very much for your work and perseverance. I will do my best to commit this next weekend. -- stage: patch review -> commit review ___ Python tracker

[issue26473] Python 3.5 not run

2016-03-02 Thread Slava
New submission from Slava: Python 3.5 not run on Windows Server 2003 (PE mode). Python 3.5 installer not work too. -- components: Windows files: Clipboard01.jpg messages: 261134 nosy: newillusion, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status:

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread SilentGhost
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker ___ ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-03-02 Thread Alessandro Cucci
Alessandro Cucci added the comment: Meanwhile I made corrections after @belopolsky latest review -- Added file: http://bugs.python.org/file42063/issue19475_v17.patch ___ Python tracker

[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Berker Peksag
Berker Peksag added the comment: Good catch, thanks! -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 305ae007899b by Berker Peksag in branch '2.7': Issue #26246: Set initial value of the hidden attr when creating copy button. https://hg.python.org/cpython/rev/305ae007899b -- ___ Python tracker

[issue26246] Code output toggle button uses removed jQuery method

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7444bdd400cd by Berker Peksag in branch '3.4': Issue #26246: Set initial value of the hidden attr when creating copy button. https://hg.python.org/cpython/rev/7444bdd400cd New changeset 256339c28d42 by Berker Peksag in branch '3.5': Issue #26246:

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Jakub! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba71aecec943 by Berker Peksag in branch 'default': Issue #26335: Make mmap.write() return the number of bytes written like https://hg.python.org/cpython/rev/ba71aecec943 -- nosy: +python-dev ___ Python

[issue25825] AIX shared library extension modules installation broken

2016-03-02 Thread Michael Felt
Michael Felt added the comment: FYI: when build and src are the same directory, there is no error message. However, when src and build are in seperate directories (e.g., build = '.', src = '../src/python-2.7.11' the following message occurs MANY times: unable to execute

[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thanks for the review, Martin! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e16084e07761 by Yury Selivanov in branch '3.5': coroutines: Error when awaiting on coroutine that's being awaited https://hg.python.org/cpython/rev/e16084e07761 New changeset 2218ce5c592f by Yury Selivanov in branch 'default': Merge 3.5 (issue

[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Michael Felt
Michael Felt added the comment: wonderful suggestion - it gets the build past that hurdle. My bad that I had not looked more carefully at configure --help output. But that brings back another 'issue' I had also seen when verifying 2.7.10. I shall look in the bug-list for a related issue (I

[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-02 Thread Michael Herold
Changes by Michael Herold : Added file: http://bugs.python.org/file42062/example.py ___ Python tracker ___

[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-02 Thread Michael Herold
Michael Herold added the comment: I have prepared a working patch to sketch how this could be implemented. A small example (example.py) shows how this feature can be used to implement a fallback to environment variables. This patch allows Currying of positional arguments (i.e. you can give

[issue26338] remove duplicate bind addresses in create_server

2016-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thanks, Sebastien! -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.6 ___ Python tracker

[issue26347] BoundArguments.apply_defaults doesn't handle empty arguments

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94879997ea5f by Yury Selivanov in branch '3.5': inspect: Fix BoundArguments.apply_defaults to handle empty arguments https://hg.python.org/cpython/rev/94879997ea5f New changeset 779a0d51f7e2 by Yury Selivanov in branch 'default': Merge 3.5 (issue

[issue25647] Return of asyncio.coroutine from asyncio.coroutine doesn't work with enabled asyncio debug

2016-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: Vladimir, thanks for the patch! -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue25647] Return of asyncio.coroutine from asyncio.coroutine doesn't work with enabled asyncio debug

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd21f162e377 by Yury Selivanov in branch '3.5': asyncio: Fix @coroutine to recognize CoroWrapper (issue #25647) https://hg.python.org/cpython/rev/fd21f162e377 New changeset e3aee2f16937 by Yury Selivanov in branch 'default': Merge 3.5 (issue

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-02 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___

[issue26472] Infinite loop

2016-03-02 Thread Christian Heimes
Christian Heimes added the comment: In open(False) Fale is interpreted as int 0. The function call opens file descriptor 0 (stdin) and waits for incoming data. Try this code, enter some text and press enter to see what is going on: with open(False) as f: for line in f:

[issue26472] Infinite loop

2016-03-02 Thread Tibichte
New submission from Tibichte: The code below runs indefinitely: with open(False) as f: for line in f: print(line) -- components: IO messages: 261113 nosy: DarkMagus priority: normal severity: normal status: open title: Infinite loop type: behavior versions: Python 3.5

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-02 Thread Barun Parruck
Barun Parruck added the comment: So...firstly hi, and sorry for disappearing like that! You want tests for the dis.findlabels library? What sort of tests are you looking for? Similiarly sized bytecode streams like the ones we worked with, or did you have something else in mind? B --

[issue26465] Upgrade OpenSSL shipped with python installers

2016-03-02 Thread Christian Heimes
Christian Heimes added the comment: New security releases of Python are scheduled for the near future, most likelye mid to end of March. -- ___ Python tracker

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Vojtěch Pachol
Vojtěch Pachol added the comment: Actually it is a remote fs mounted via samba. OS is Linux. Tracebacks with Python versions I have: $ python2.7 Python 2.7.11 (default, Jan 11 2016, 21:04:40) [GCC 5.3.1 20160101] on linux2 Type "help", "copyright", "credits" or "license" for more information.

[issue26471] load_verify_locations(cadata) should load AUX ASN.1 to supported trusted certs

2016-03-02 Thread Christian Heimes
New submission from Christian Heimes: https://docs.python.org/2/library/ssl.html#ssl.SSLContext.load_verify_locations can load certs from a file, a directory or from memory. OpenSSL's loaders for cafile and capath load auxiliary data of trusted certs. The custom loader for cadata ignores AUX

[issue26465] Upgrade OpenSSL shipped with python installers

2016-03-02 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker ___

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-02 Thread Christian Heimes
New submission from Christian Heimes: OpenSSL 1.1.0 is changing a lot of internals. Most structs are opaque, RC4 and SSLv2 are gone. I've a rough patch in my private repos. I'll submit the patch as soon as the code is compatible with OpenSSL 1.0.2, too.

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-03-02 Thread Tamás Bence Gedai
Tamás Bence Gedai added the comment: Is there anything else that I can do for this issue? -- ___ Python tracker ___

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that copy2 should not fail because chmod fails. Could you please provide the entire traceback message when it fails (on both 2.7 and 3.4 or 3.5)? And what OS are you running on, and what filesystem? It looks like the error happens because errno=95

[issue17873] _ctypes/libffi missing bits for aarch64 support

2016-03-02 Thread Berker Peksag
Berker Peksag added the comment: This has been fixed as part of updating libffi in issue 22176: https://github.com/python/cpython/blob/master/Modules/_ctypes/libffi/fficonfig.py.in#L20 Thanks for the report and for the patch, Andreas! -- nosy: +berker.peksag resolution: -> out of

[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Does Python 2.7.10 build fine ? If so, then perhaps xlc doesn't like the computed gotos in ceval.c. You could try compiling with: ./configure ... --without-computed-gotos ... to check. -- nosy: +lemburg ___

[issue13492] ./configure --with-system-ffi=LIBFFI-PATH

2016-03-02 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue25660] tabs don't work correctly in python repl

2016-03-02 Thread Berker Peksag
Changes by Berker Peksag : -- status: open -> closed ___ Python tracker ___ ___

[issue22176] update internal libffi copy to 3.1, introducing AArch64 and POWER ELF ABIv2

2016-03-02 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Michael Felt
Michael Felt added the comment: Patched to fp22: vacpp.11.1.0.22.aix53TL7-71.sept2015.ptf.tar.Z after reinstalling system! to be sure no garbage left around. Only updates are openSSL/SSH packages; no RPM's installed. Same error message(s). Tried compiling ceval.o with -O0 (capt. O, zero) -

[issue26469] Bug in ConfigParser when setting new values in extended interpolation

2016-03-02 Thread Michael Jacob
Michael Jacob added the comment: My bad. ConfigParser expects an interpolation object, not a class. Instead of c=ConfigParser(interpolation=ExtendedInterpolation) you need to create it with: c=ConfigParser(interpolation=ExtendedInterpolation()) Sorry about that. -- resolution: ->

[issue26469] Bug in ConfigParser when setting new values in extended interpolation

2016-03-02 Thread Michael Jacob
New submission from Michael Jacob: There seems to be a bug in configparser when setting new values in extended interpolation: python --version Python 3.5.1 from configparser import ConfigParser, ExtendedInterpolation c=ConfigParser(interpolation=ExtendedInterpolation) c.add_section('test')

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2016-03-02 Thread Vojtěch Pachol
New submission from Vojtěch Pachol: `copy2` checks if `os` nodule has `chmod` and then it uses it without thinking. On filesystems that doesn't support `chmod` it ends with OSError: [Errno 95] Operation not supported: which is not acceptable since documentation says "copy2() never

[issue26466] cannot build python 2.7.11 on AIX

2016-03-02 Thread Michael Felt
Michael Felt added the comment: At first I thought it might be a 0x0001 rather than 0x0003 (as I have no idea what the additional info is AND that the lines starting with [0] are the Symbol 0 (zero) you indicate the message. Also thought it might have been the double listing of some symbols