[issue20338] Idle: increase max calltip width

2014-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: textwrap.TextWrapper in 3.3 doesn't have '*' and following parameters. -- ___ Python tracker ___ _

[issue20338] Idle: increase max calltip width

2014-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed 5 to _MAX_LINES. Other than trivial duplication, I think each test example should be added for a reason, because there is something different about it that might conceivably cause a failure. For example, there should be a case with more than _MAX_LIN

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Guido van Rossum
Guido van Rossum added the comment: I've lost some context, but perhaps we should have the notion of "granularity" of the poll/select timeout (e.g. 1 msec), and consider events that are in the future by less than that granularity as ready? Then we can round the timeout down: if someone passes a t

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Charles-François Natali
Charles-François Natali added the comment: > Did you read my Tulip? Maybe I didn't explain correctly. No, it was quite clear, and I think I understand the original issue: calling epoll_wait(0) when passed a timeout of 0.9ms was bad, because it led to busy-loop during 0.9ms. But here, that's ano

[issue20374] Failure to compile with readline-6.3-rc1

2014-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79b82ebc4fd1 by Benjamin Peterson in branch '2.7': use new readline function types (closes #20374) http://hg.python.org/cpython/rev/79b82ebc4fd1 New changeset fb2259d9f6b4 by Benjamin Peterson in branch '3.3': use new readline function types (closes

[issue17681] Work with an extra field of gzip and zip files

2014-01-23 Thread Nikolaus Rath
Changes by Nikolaus Rath : -- nosy: +nikolaus.rath ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue9521] xml.etree.ElementTree skips processing instructions when parsing

2014-01-23 Thread Nikolaus Rath
Nikolaus Rath added the comment: I have created issue 20375 with a patch to document the current behavior. -- ___ Python tracker ___ __

[issue20375] ElementTree: Document handling processing instructions

2014-01-23 Thread Nikolaus Rath
New submission from Nikolaus Rath: (This issue was branched of from #9521). When parsing XML, etree currently skips over all processing instructions and comments. However, both can be represented in the tree and are also written out when generating XML. The attached patch documents this (IMO

[issue20374] Failure to compile with readline-6.3-rc1

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever, benjamin.peterson, georg.brandl, larry priority: normal -> release blocker versions: +Python 3.4 ___ Python tracker _

[issue20374] Failure to compile with readline-6.3-rc1

2014-01-23 Thread jhl
Changes by jhl : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20374] Failure to compile with readline-6.3-rc1

2014-01-23 Thread jhl
New submission from jhl: Python 2.7.6 does not compile with readline 6.3 (rc1). It looks like the RL_FUNCTION_TYPEDEF support in Modules/readline.c is not quite complete. The following patch works for me, both for 2.7.6 and 3.3.3. --- a/Modules/readline.c2013-11-10 18:36:41.0 +

[issue20374] Failure to compile with readline-6.3-rc1

2014-01-23 Thread jhl
Changes by jhl : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2014-01-23 Thread R. David Murray
R. David Murray added the comment: I don't know anything about the current relationship between the external project and the stdlib version. In the (small) changes I've been part of, we have maintained what is in the stdlib without reference to the external project. -- __

[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2014-01-23 Thread Nikolaus Rath
Nikolaus Rath added the comment: Apologies, I missed that. I'll be more careful in the future. I've attached an updated patch that also adds some extra Sphinx markup, but should IMO still be credited to Ryan and Karl. -- Added file: http://bugs.python.org/file33674/issue11448_r3.patch

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: A little more on consistency and inconsistency. I count 109 tp_new callback functions in CPython, and they overwhelmingly call the first parameter "PyTypeObject *type" (93 instances). In second place is "PyObject *self" (9 instances), which is flat-out wrong.

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

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file33645/python-warnings.patch ___ Python tracker ___ _

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

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The new patch includes changes suggested by Antoine. (This patch should be applied after patch from issue #20373.) -- Added file: http://bugs.python.org/file33673/python-warnings.patch ___ Python

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

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- dependencies: +Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings ___ Python tracker ___

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

2014-01-23 Thread Christopher Welborn
Changes by Christopher Welborn : Removed file: http://bugs.python.org/file33642/pathlib.readwrite.patch ___ Python tracker ___ ___ Python-bugs

[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file33672/python-3.3-test_warnings.py_use_assert_python_ok.patch ___ Python tracker ___ _

[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: These patches make test.test_warnings use test.script_helper.assert_python_ok() instead of subprocess.*, as suggested by Antoine in msg209022. -- assignee: pitrou components: Tests files: python-2.7-test_warnings.py_use_assert_pyt

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

2014-01-23 Thread Christopher Welborn
Christopher Welborn added the comment: Antoine said: > I would suggest differently: > - read_text(encoding, errors, newline) > - read_bytes() > - write_text(data, encoding, errors, newline) > - write_bytes(data) > > Strictly speaking, write() could be polymorphic, but I think it's nice > to have

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

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is this behavior causing problems? How bad is it? Not really. It's just a bit suboptimal and counter-intuitive (local settings should trump global settings). -- ___ Python tracker

[issue20341] Argument Clinic: add "nullable ints"

2014-01-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20341] Argument Clinic: add "nullable ints"

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would color your final sentence slightly. Yes, there are plenty of > legitimate discussions about API semantics and nomenclature. But > there are infinitely many pointless and time-wasting discussions. > Therefore not every question about API and naming dec

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

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: Is this behavior causing problems? How bad is it? Can I get more opinions about this than just Arfrever and Antoine? Not that I don't trust their opinions, I just want to see a larger sample size. -- ___ Python tr

[issue17481] inspect.getfullargspec should use __signature__

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: My solution for pydoc was to call isroutine() instead of isfunction(), and yes handle it throwing an exception. (I just checked, and I wasn't catching TypeError, only ValueError. I'll fix that in my next patch for #20189.) -- ___

[issue20341] Argument Clinic: add "nullable ints"

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: I don't think it's fair to call my responses "snarky". On the other hand, your suggestion that I view Argument Clinic as "my toy project" is obviously meant as an insult. It is fair to call my responses "dismissive", because I find nothing compelling about y

[issue6839] zipfile can't extract file

2014-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Adam this is not a security issue (2.6, 3.1, 3.2), nor a future issue that must wait for 3.5. -- versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5 ___ Python tracker _

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

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: About the patch (note the code review tool hasn't accepted it, so I'm commenting here): - in the tests, I think comparing stderr as-is will fail under Windows, where the line separator is b"\r\n"; better call splitlines() first - in the tests, I think it would

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It doesn't fix the case when EpollSelector.select() got an InterruptedError. That should be very rare. I don't see a problem with retrying on EINTR. > Adding 1 ms works around the (now fixed) timeout rounding issue but I > prefered to round differently to not

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2014-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not know what the intention was for sequences and named placeholders. Thinking of named tuples made me think it ok. The code might have a hint. Is sqlite3 code maintained here or elsewhere? The current docstring is just 'Executes a SQL statement.', and he

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread STINNER Victor
STINNER Victor added the comment: Le 24 janv. 2014 00:08, "Antoine Pitrou" a écrit : > > For example, it may call again epoll_wait() if it took less than timeout > > seconds and returned no event, *and* the ready list is empty. > > Easy solution: add 1 ms. to the timeout before calling epoll_wai

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

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, 3.4 isn't supposed to receive behaviour changes anymore, unless Larry says it's ok. -- ___ Python tracker ___ ___

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

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > One thing I am not seeing is a readlines/writelines in these two > libaries. I still think they would be useful, even without the size > argument for readlines. readlines() and writelines() aren't used a lot in my experience. > So this is what I am seeing now

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For example, it may call again epoll_wait() if it took less than timeout > seconds and returned no event, *and* the ready list is empty. Easy solution: add 1 ms. to the timeout before calling epoll_wait(). Perhaps we need the same kind of thing for select() an

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread STINNER Victor
STINNER Victor added the comment: Le 23 janv. 2014 23:21, e me. > > If epoll_wait(timeout_ms) may wait less than timeout_ms seconds, asyncio > algorithm is wrong, or at least inefficient. It should loop until the time > delta is at least total_timeout seconds. See the original issue: > > http://c

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm not sure why you're asking Nick. Is he the release manager for 3.4? I'm asking him because he wrote "Reviewing the patch now.", and I thought that he might have actually seen the patch already. I'm more than fine if anyone else reviews the patch, really

[issue20341] Argument Clinic: add "nullable ints"

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Drop. It. Seriously? Why exactly did you ask for comments if your only response is to be snarky and dismissive? This is not your toy project. It is perfectly legitimate for us to question API and naming decisions. -- ___

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: I'm not sure why you're asking Nick. Is he the release manager for 3.4? -- ___ Python tracker ___ _

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I think that %s is better for 'dashes' variable (which is always str) in Lib/distutils/command/register.py: self.announce('%s%r%s' % (dashes, data, dashes)) -- ___ Python tracker

[issue20341] Argument Clinic: add "nullable ints"

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: Drop. It. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Berker Peksag
Changes by Berker Peksag : -- assignee: -> lukasz.langa stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Berker Peksag
Berker Peksag added the comment: Here's a patch to silence BytesWarnings. -- assignee: lukasz.langa -> keywords: +patch nosy: +berker.peksag stage: needs patch -> type: behavior -> Added file: http://bugs.python.org/file33669/issue20363.diff ___ Py

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Charles-François Natali
Charles-François Natali added the comment: > Ah? The manual page of epoll_wait() says: > > "The timeout argument specifies the minimum number of milliseconds that epoll_wait() will block. (This interval will be rounded up to the system clock granularity, and kernel scheduling delays mean that

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: I'm happy to resolve it before checking in the patch. A small delta like that doesn't need a full-on review. If people said "eww" then I'll back it out. Nobody said "eww" to the "PyModuleDef *module" change (see below), and I'm not here to pick a fight. But le

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't any blocked syscall with a timeout can be interrupted by a signal? epoll_wait() can return EINTR. -- ___ Python tracker ___ ___

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > "The timeout argument specifies the minimum number of milliseconds > that epoll_wait() will block. (This interval will be rounded up to > the system clock granularity, and kernel scheduling delays mean that > the blocking interval may overrun by a small

[issue20341] Argument Clinic: add "nullable ints"

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > How many existing occurrences of "or_none" did you find in the CPython > tree? If I split that into the individual words "or" and "None", quite a lot. Looking for "or None" turns quite a bunch of matches too. "or_none" simply applies the PEP 8 convention for

[issue20204] pydocs fails for some C implemented classes

2014-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With issue #20372 patch pydoc no longer raise an exception, but it also doesn't produce useful output. In 3.3 it prints more details. -- ___ Python tracker _

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I think that repr could be used: Agree. "{}".format(bytestr) -> "{!r}".format(bytestr) -- nosy: +serhiy.storchaka ___ Python tracker ___ _

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

2014-01-23 Thread Christopher Welborn
Christopher Welborn added the comment: I should clarify that last sentence, I was trying to say that the type is determined by the first item. If the user tries to mix bytes/text they will receive the proper error from io's writelines when the mismatched type is written. If the first item is n

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread STINNER Victor
STINNER Victor added the comment: > Those failures are "expected", nothing guarantees that the syscall > will take at least the amount of time specified. Ah? The manual page of epoll_wait() says: "The timeout argument specifies the minimum number of milliseconds that epoll_wait() will block.

[issue20358] test_curses is failing

2014-01-23 Thread Nadeem Vawda
Nadeem Vawda added the comment: I can reproduce this (also on Ubuntu 13.10 64-bit). Maybe there's a bug in the version of curses distributed with the latest Ubuntu release? It looks like our only Ubuntu buildbot is using 8.04 (almost 6 years old!). Also note that you won't be able to reproduce t

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

2014-01-23 Thread Christopher Welborn
Christopher Welborn added the comment: Oops, I did. Thanks for that. So setContent overwrites the file like open('myfile', 'w').write() would, except it has an option to give the temporary file a different extension (in case of a crash while writing). That's understandable for Twisted. getCont

[issue1243730] Big speedup in email message parsing

2014-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue20341] Argument Clinic: add "nullable ints"

2014-01-23 Thread Larry Hastings
Larry Hastings added the comment: How many existing occurrences of "or_none" did you find in the CPython tree? Perhaps we can turn our attention to other languages like SQL and C# and borrow their term for "value that is allowed to be of a specific type (or types) as well as the null value".

[issue17671] io.BufferedRWPair can use uninitialized members

2014-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python implementation raises AttributeError, C implementations of other streams raise ValueError on uninitialized read/write. Therefore I think ValueError is more appropriate for BufferedRWPair too. Revised patch changes exception type and message to confor

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: You rather meant [2:-1] instead of [1:-1], but if initial "b'" and final "'" are not needed in result string, then maybe just call .decode() on an instance of bytes. >>> str(b"xxx") "b'xxx'" >>> repr(b"xxx") "b'xxx'" >>> repr(b"xxx")[1:-1]

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-23 Thread Zachary Ware
Zachary Ware added the comment: Ok, I found the source of the real issue alluded to in the misguided comment about the 'cls' -> 'type' change that I left on Rietveld. I was under the impression that with that change, 'help(datetime.datetime.now)' would show a signature of 'now(type, tz=None)'.

[issue16382] Better warnings exception for bad category

2014-01-23 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Łukasz Langa
Łukasz Langa added the comment: `repr(bytestr)[1:-1]` ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2014-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Twisted: > http://twistedmatrix.com/documents/current/api/twisted.python.filepath.FilePath.html > > Looking at twisted.python.filepath.FilePath, it looks like there is no > read/write. You overlooked the getContent and setContent methods. -- ___

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

2014-01-23 Thread Christopher Welborn
Christopher Welborn added the comment: Django: https://docs.djangoproject.com/en/dev/ref/files/file/#django.core.files.File It looks like Django has a File object that wraps around Python's built-in file object. It offers a 'mode' attribute, and a read(num_bytes=None) / write([content]) funct

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I think that repr could be used: str(bytes_instance)-> repr(bytes_instance) "%s" % bytes_instance -> "%r" % bytes_instance Any opinions? -- ___ Python tracker

[issue20204] pydocs fails for some C implemented classes

2014-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: See issue #20372 -- fix for the 'inspect.getfile' function. -- ___ Python tracker ___ ___ Python-bug

[issue20372] inspect.getfile should raise a TypeError if C object does not have __module__

2014-01-23 Thread Yury Selivanov
New submission from Yury Selivanov: I'm not sure if it is right to fix the inspect module, instead of making all C objects to have the '__module__' attribute (is it even possible?), but if it is, the patch is attached. -- files: getfile_patch_01.patch keywords: patch messages: 208988 n

[issue6839] zipfile can't extract file

2014-01-23 Thread Adam Polkosnik
Changes by Adam Polkosnik : Removed file: http://bugs.python.org/file33662/zipfile_stupid.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue6839] zipfile can't extract file

2014-01-23 Thread Adam Polkosnik
Changes by Adam Polkosnik : Removed file: http://bugs.python.org/file33663/zipfile_stupid2.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue6839] zipfile can't extract file

2014-01-23 Thread Adam Polkosnik
Adam Polkosnik added the comment: Excellent, please see my third attempt. -- Added file: http://bugs.python.org/file33666/zipfile_stupid3.patch ___ Python tracker ___

[issue6839] zipfile can't extract file

2014-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > As I wrote in msg116385 I'd prefer to drop the consistency check completely > because updating data like the filename in the central directory is a cheap > way to rename files without completely rewriting the zip file. It should at least left as debugging pr

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2014-01-23 Thread R. David Murray
R. David Murray added the comment: It is actually not surprising if you are familiar with the copy/pickle protocol. Presumably that should be mentioned in the replace docs, though (assuming I'm right and that is why the behavior occurs). -- nosy: +r.david.murray _

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2014-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: I've just quickly looked the issue: 1. There is an inconsistency between python & c implementations: datetime.replace always returns "datetime(...)" object, but should return "self.__class__()" 2. "new_datetime_ex" in c implementation does not call constructo

[issue6839] zipfile can't extract file

2014-01-23 Thread Georg Brandl
Georg Brandl added the comment: print() is not a good way to emit the warning; please use the warnings module. -- nosy: +georg.brandl ___ Python tracker ___ __

[issue6839] zipfile can't extract file

2014-01-23 Thread Adam Polkosnik
Adam Polkosnik added the comment: Can we get this simple "fix" implemented in time for the next 2.7.x release?! Thank you! -- ___ Python tracker ___ _

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2014-01-23 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +belopolsky, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue20204] pydocs fails for some C implemented classes

2014-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-23 Thread Brecht Van Lommel
Brecht Van Lommel added the comment: We have a similar issue in Blender (where Python is embedded), but it's actually causing a crash instead of only a compiler warning: https://developer.blender.org/T38256 The code in the Visual Studio 2013 math.h looks like this: __inline double __CRTDECL h

[issue20371] datetime.datetime.replace bypasses a subclass's __new__

2014-01-23 Thread Andrew Lutomirski
New submission from Andrew Lutomirski: I'll admit that what I'm doing is possibly unhealthy. Nonetheless, I find this behavior *extremely* surprising. This code: --- start code --- import datetime class my_dt(datetime.datetime): def __new__(cls, *args, **kwargs): print('In my_dt

[issue17373] Add inspect.Signature.from_callable()

2014-01-23 Thread Yury Selivanov
Changes by Yury Selivanov : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20369] concurrent.futures.wait() blocks forever when given duplicate Futures

2014-01-23 Thread Glenn Langford
Glenn Langford added the comment: Proposed patch...please treat with an appropriate level of suspicion since this is my first patch submission. :-) A corresponding change will be made to as_completed() for #20367. Suggestions welcome. -- keywords: +patch Added file: http://bugs.pyth

[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2014-01-23 Thread Charles-François Natali
Charles-François Natali added the comment: Sorry for the delay, I had completely forgotten this issue. Igor, could you try the patch attached? -- keywords: +patch Added file: http://bugs.python.org/file33664/af_can_define.diff ___ Python tracker

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

2014-01-23 Thread Brian Quinlan
Brian Quinlan added the comment: I'm not currently working on concurrent.futures but I do look at patches and bug reports. I'll take a look at this and Issue20297 sometime this week. -- ___ Python tracker

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-23 Thread Charles-François Natali
Charles-François Natali added the comment: == > FAIL: test_timeout_rounding (test.test_epoll.TestEPoll) > -- > Traceback (most recent call last): > File "/srv/

[issue20363] BytesWarnings triggerred by test suite

2014-01-23 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> lukasz.langa stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bu

[issue6839] zipfile can't extract file

2014-01-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: As I wrote in msg116385 I'd prefer to drop the consistency check completely because updating data like the filename in the central directory is a cheap way to rename files without completely rewriting the zip file. --

[issue20297] concurrent.futures.as_completed() installs waiters for already completed Futures

2014-01-23 Thread Glenn Langford
Glenn Langford added the comment: > - you replaced the _AcquireFutures context manager on all futures with an > >individual lock. In my opinion, it should be changed in a different patch. I > >don't know which option is better, but if it is changed, it should be > changed >in the whole file.

[issue6839] zipfile can't extract file

2014-01-23 Thread Adam Polkosnik
Adam Polkosnik added the comment: This one has the parentheses for print, so that it works in python 3.x. Also, the default fallback behavior in this case is to use the filename from the zips' directory (the first path in the warning). -- Added file: http://bugs.python.org/file33663/zi

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-23 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2014-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20075] help(open) eats first line

2014-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: > Reviewing the patch now. Nick, can I push this? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue17481] inspect.getfullargspec should use __signature__

2014-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, Nick, So what's the resolution on this one? Do I have a green light? -- ___ Python tracker ___ _

[issue6839] zipfile can't extract file

2014-01-23 Thread Adam Polkosnik
Adam Polkosnik added the comment: I'm in a similar situation, my test file raises this: File name in directory "windows\TEMP\\test123.txt" and header "C:\windows\TEMP\\test123.txt" differ. It turns out that I can't find any cross platform procedures for processing the paths between the differ

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-23 Thread Tal Einat
Changes by Tal Einat : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue6839] zipfile can't extract file

2014-01-23 Thread Adam Polkosnik
Changes by Adam Polkosnik : Removed file: http://bugs.python.org/file32160/zipfile.py.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20366] SQLite FTS (full text search)

2014-01-23 Thread Ned Deily
Changes by Ned Deily : -- components: +Build, Windows -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue20366] SQLite FTS (full text search)

2014-01-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +loewis, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-23 Thread Zachary Ware
Zachary Ware added the comment: Ok, here's a new patch. This one fixes the issues I found in my last patch (HKEY return converter in winreg, mess from previous return converter attempts in msvcrt), and switches all four modules to a two-pass output scheme. This should be basically what I wan

  1   2   3   >