[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread py.user
New submission from py.user: https://docs.python.org/3/library/re.html#writing-a-tokenizer There are redundant escapes in the regex: ('OP', r'[+*\/\-]'),# Arithmetic operators Sequence -+*/ is sufficient. It makes the loop to do all steps on every 4 spaces: ('SKIP',r'[ \t]'),

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa
Claudiu Popa added the comment: Hi, thanks for the report. Here's a patch which implements __setstate__ and __getstate__ for Row objects. -- keywords: +patch nosy: +Claudiu.Popa, ghaering stage: -> patch review versions: +Python 3.5 -Python 3.3 Added file: http://bugs.python.org/file35

[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-14 Thread STINNER Victor
STINNER Victor added the comment: > Killed process python(28623:#112) vsz:340800kB, anon-rss:330764kB, > file-rss:3864kB 340 MB to run test_selectors sounds high. What is the value of NUM_FDS? And what is the result of this command in your vserver? $ python -c 'import resource; print(resourc

[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will keep the \- because the - at the front of the character range is a non-obvious special case. The other changes look reasonable. -- priority: normal -> low stage: -> commit review type: enhancement -> performance versions: +Python 2.7, Python

[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb28542af060 by Raymond Hettinger in branch '3.4': Issue 21977: Minor improvements to the regexes in the tokenizer example. http://hg.python.org/cpython/rev/bb28542af060 -- nosy: +python-dev ___ Python t

[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed versions: -Python 2.7 ___ Python tracker ___ ___ Pytho

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> bob.ippolito nosy: +bob.ippolito ___ Python tracker ___ ___ Python-bugs-lis

[issue16620] Avoid using private function glob.glob1() in msi module and tools

2014-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Martin, this patch touches some of your code. Do you care to take a look at it? -- assignee: -> loewis nosy: +loewis, rhettinger ___ Python tracker ___

[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])

2014-07-14 Thread Ram Rachum
New submission from Ram Rachum: Implement `__getitem__` on `OrdredDict.keys`, `OrdredDict.values` and `OrdredDict.items`, so the following code snippet wouldn't error: >>> from collections import OrderedDict >>> o = OrderedDict(((1, 2), (3, 4), (5, 6))) >>> o OrderedDict([(1, 2)

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-14 Thread wjssz
wjssz added the comment: I suggest don't change the content of file, just give a message such as: IDLE can't display non-BMP character (codepoint above 0x). A non-BMP character found in Line 23, position 8 of .py, please open this file with other editor. -- ___

[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])

2014-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not sure this would make sense given that the ordered dict itself isn't indexable, given that keys/values/items on regular dicts aren't indexable, and given that keys/items views are set-like rather than sequence-like. The one obvious way to get sequenc

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Mika Eloranta
New submission from Mika Eloranta: The following are expected to raise SyntaxError, but they don't: >>> 0xfor python is weird in ways 15 >>> [0xaor 1, 0xbor 1, 0xcor 1, 0xdor 1, 0xeor 1, 0xfor 1] [10, 11, 12, 13, 14, 15] Verified on v2.7.1 and v3.3.2. Probably affects all versions. --

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Mark Dickinson
Mark Dickinson added the comment: Surprisingly, this is valid syntax. Your first line is parsed as: 0xf or (python is weird in ways) Because `or` is short-circuiting, its right-hand operand (which is also valid syntactically, being a chained comparison) is never evaluated, so we don't see

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Mika Eloranta
Mika Eloranta added the comment: Mark, can you explain why the first example is valid syntax, but the second one is not: >>> 0xaor 1 10 >>> 0xaand 1 File "", line 1 0xaand 1 ^ SyntaxError: invalid syntax I do understand how "0xaor 1" is currently parsed, but I'm not still conv

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Eric V. Smith
Eric V. Smith added the comment: 0xaand 1 is parsed as 0xaa nd 1 which is not valid syntax. -- nosy: +eric.smith ___ Python tracker ___ _

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Eric V. Smith
Changes by Eric V. Smith : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Mika Eloranta
Mika Eloranta added the comment: OK, I see... "0xfand 1" is ambiguous "(0xfa)nd 1" vs. "(0xf)and 1". So, while a bit weird, the behavior is consistent: >>> 123not in [], 0xfnot in [], 0xfor 1, 0xafor 1, 0xfin [] (True, True, 15, 175, False) -- ___ P

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Eric V. Smith
Eric V. Smith added the comment: To be more clear: the parser takes the longest token that could be valid. Since "n" can't be part of a hex number, parsing stops there, returning "0xaa" as the first token. So: >>> 0xaaif 1 else 0 170 >>> hex(0xaaif 1 else 0) '0xaa' >>> -- __

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The issue is not in pickling/unpickling, but in sqlite3.Row.__new__ which creates object in invalid state. Simple example: >>> import sqlite3 >>> r = sqlite3.Row.__new__(sqlite3.Row) >>> len(r) Segmentation fault (core dumped) -- assignee: -> serhiy

[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Ram Rachum
Changes by Ram Rachum : -- components: Library (Lib) nosy: cool-RR priority: normal severity: normal status: open title: Implement `logging.LogRecord.__repr__` type: enhancement versions: Python 3.5 ___ Python tracker

[issue21981] Idle problem

2014-07-14 Thread Thomas Kember
New submission from Thomas Kember: Hello Terry, Thank you for your explanation of the bug in Idle. I know Idle has limitations, but it is quite adequate for the programming I want to do. I agree that when this error occurs there should only be a warning, so the user can decide what he wants t

[issue21979] SyntaxError not raised on "0xaor 1"

2014-07-14 Thread Mark Dickinson
Mark Dickinson added the comment: > Mark, can you explain why the first example is valid syntax, but the second > one is not: Looks like Eric beat me to it! As he explained, it's the "maximal munch" rule at work: the tokenizer matches as much as it can for each token. You see similar effects

[issue21981] Idle problem

2014-07-14 Thread SilentGhost
Changes by SilentGhost : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21981] Idle problem

2014-07-14 Thread Eric V. Smith
Eric V. Smith added the comment: Please respond to the other bug. No need to open a new bug when responding to an existing issue. Thanks. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa
Claudiu Popa added the comment: Using your example, I can't make it to crash using the tip, nor with Python 3.4. -- ___ Python tracker ___ ___

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa
Claudiu Popa added the comment: Nevermind, I didn't see the len call. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes crash. -- stage: -> patch review Added file: http://bugs.python.org/file35953/sqlite3_row_new.patch ___ Python tracker __

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa
Claudiu Popa added the comment: It doesn't crash anymore with your patch, but the pickle.load fails: Traceback (most recent call last): File "a.py", line 19, in load = pickle.loads(dump) TypeError: function takes exactly 2 arguments (0 given) -- stage: patch review -> _

[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2014-07-14 Thread R. David Murray
R. David Murray added the comment: As Milan said, the problem doesn't arise in 3.5 with decode_data=False, since there's no decoding. His patch doesn't actually fix the bug for the decode_data=True case, though, since the bug is a *valid* utf-8 sequence getting split across tcp buffers. To f

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For pickling open other issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue8849] python.exe problem with cvxopt

2014-07-14 Thread R. David Murray
R. David Murray added the comment: True. Since there was no response from the OP to my question, let's close this. It can be reopened if he's still having a problem, which seems unlikely. -- resolution: -> third party stage: -> resolved status: open -> closed type: -> behavior ___

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-14 Thread hakril
hakril added the comment: I found something else, I think it worth mentioning it. This side-effect allows to create generators that return other values that None. And the CPython's behavior is not the same for all versions: >>> {(yield i) : i for i in range(2)} at 0x7f0b98f41410>

[issue21981] Idle problem

2014-07-14 Thread Thomas Kember
Thomas Kember added the comment: Hello Eric V. Smith, I reported only one bug and it has been fixed. I can't find out how I am to reset the status of it to closed. Thomas Kember From: Eric V. Smith To: t.kemb...@btinternet.com Sent: Monday, 14 July 2014, 13

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa
Claudiu Popa added the comment: Ups, I accidentally removed the patch review stage, sorry for that. -- stage: -> patch review ___ Python tracker ___

[issue21947] `Dis` module doesn't know how to disassemble generators

2014-07-14 Thread Clement Rouault
Clement Rouault added the comment: Updated some docstrings in the new patch after the review comments. Thanks kushou for the code review. -- Added file: http://bugs.python.org/file35954/dis_generator3.patch ___ Python tracker

[issue21982] Idle: Regression introduced in configDialog by rev 91509

2014-07-14 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: The concerned part : http://hg.python.org/cpython/rev/b836a0cd68f7#l4.15 "NameError: name 'keySet' is not defined." -- messages: 223031 nosy: sahutd, terry.reedy priority: normal severity: normal status: open title: Idle: Regression introduced in

[issue21982] Idle: Regression introduced in configDialog by rev 91509

2014-07-14 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16561] bdist_wininst installers don't use UAC, then crash

2014-07-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: I just noticed that I misread the original issue: it's not about the Python Windows installer, but about bdist_wininst packages. -- title: Windows installer doesn't use UAC, then crashes -> bdist_wininst installers don't use UAC, then crash _

[issue16561] bdist_wininst installers don't use UAC, then crash

2014-07-14 Thread Steve Dower
Changes by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Berker Peksag
Changes by Berker Peksag : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +christian.heimes, dstufft, giampaolo.rodola, pitrou versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue17480] pyvenv should be installed someplace more obvious on Windows

2014-07-14 Thread Steve Dower
Steve Dower added the comment: Automatically quoting arguments is more complicated than simply concatenating quotes, unfortunately, and people are guaranteed to have come up with ways to make it work already. My vote is for leaving this alone and letting the higher level functions be more cle

[issue17480] pyvenv should be installed someplace more obvious on Windows

2014-07-14 Thread Steve Dower
Steve Dower added the comment: That last message should have been on #20451 :) My thoughts on pyvenv are that it should be in Scripts\ if anywhere, but I'm not desperate to have it on PATH. I would rather not start putting more files alongside python.exe. -- _

[issue20451] os.exec* mangles argv on windows (splits on spaces, etc)

2014-07-14 Thread Steve Dower
Steve Dower added the comment: Automatically quoting arguments is more complicated than simply concatenating quotes, unfortunately, and people are guaranteed to have come up with ways to make it work already. My vote is for leaving this alone and letting the higher level functions be more cle

[issue15883] Add Py_errno to work around multiple CRT issue

2014-07-14 Thread Steve Dower
Steve Dower added the comment: Also agreed with not exposing a side-channel to set errno. I'd expect this to no longer be an issue with the stable CRT, but I'm not 100% confident about saying that yet. In theory, there will only ever be one CRT loaded in the future, but there's probably going

[issue17056] Support Visual Studio 2012

2014-07-14 Thread Steve Dower
Steve Dower added the comment: msvc9compiler should not look for any versions of MSVC other than 9.0, since extensions built using other versions will be subtly (or dramatically) incompatible with Python unless you also rebuild Python itself with the same MSVC version. You can set DISTUTILS_U

[issue7687] Bluetooth support untested

2014-07-14 Thread Tim Tisdall
Changes by Tim Tisdall : -- nosy: +Tim.Tisdall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue7687] Bluetooth support untested

2014-07-14 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2014-07-14 Thread Tim Tisdall
Changes by Tim Tisdall : -- nosy: +Tim.Tisdall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-07-14 Thread Bob Ippolito
Bob Ippolito added the comment: This patch looks reasonable to me as-is. With regard to "Infinite and NaN number values are accepted and output;" there's an option for that (allow_nan=False in encoding, parse_constant=some_function_that_raises in decoding). Since an exception can't be raised

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Niklas Claesson
Niklas Claesson added the comment: I would like to add a use case. Control systems for particle accelerators. We have ns, sometimes ps precision on timestamped data acquisitions and we would like to use Python to do calculations. -- nosy: +Niklas.Claesson _

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-07-14 Thread Chris Rebert
Chris Rebert added the comment: Thanks for the speedy review! Those NaN-related arguments are already mentioned in the docs (see last 2 sentences of https://docs.python.org/3/library/json.html#infinite-and-nan-number-values ), and this patch doesn't touch that subsection. -- ___

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-07-14 Thread Bob Ippolito
Bob Ippolito added the comment: Good call, I was just doing a quick review of the patch in isolation. Now I don't have anything at all to comment on :) -- ___ Python tracker ___

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Given that struct timespec defined as struct timespec { time_t tv_sec;/* seconds */ long tv_nsec; /* nanoseconds */ }; is slowly becoming the prevailing standard to represent time in

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-14 Thread Brandon Rhodes
Brandon Rhodes added the comment: Now that I am back at a full keyboard, I see that my previous response to @BreamoreBoy about this issue is too short and too cryptic to really serve as a fair answer to his question. And, with some embarrassment, I note that my words did not even achieve the dig

[issue21922] PyLong: use GMP

2014-07-14 Thread Mark Dickinson
Mark Dickinson added the comment: > When GMP encounters a memory allocation failure (exceeding the limits above > or when running our of scratch space), it will just abort. Ouch; that's not friendly. Seems like this is part of the reason that Armin Rigo abandoned the attempt to use GMP in PyP

[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Vinay Sajip
New submission from Vinay Sajip: LogRecord has a lot of attributes. You can normally show what you want using a Formatter. I could implement something that just shows name and levelName. How does that sound? -- ___ Python tracker

[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Ram Rachum
Ram Rachum added the comment: Sounds good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue16807] argparse group nesting lost on inheritance

2014-07-14 Thread paul j3
paul j3 added the comment: To put this issue in perspective: - There's nothing in the documentation about nesting a mutually exclusive group in an argument group. - There are prominent notes in the documentation about MEGs not taking title and description. The '_add_container_actions' code h

[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Aren't negative indexes well defined in Python? E.g. >>> p = Path('/tmp/tmp123/foo/bar/baz.xz') >>> p.parents[len(p.parents)-2] PosixPath('/tmp') p.parents[-2] should == p.parents[len(p.parents)-2] -- ___ Python t

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2014-07-14 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21645] test_read_all_from_pipe_reader() of test_asyncio hangs on FreeBSD 9

2014-07-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0e6a370755f by Victor Stinner in branch 'default': Issue #21645: Add debug code to analyze a failure on FreeBSD 9 http://hg.python.org/cpython/rev/a0e6a370755f -- ___ Python tracker

[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue21981] Idle problem

2014-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thomas, PLEASE stop quoting messages when you post by email. Use your mouse selection and delete key. There is an open issue for adding lines numbers in the editor: #17535. It has a patch waiting for review. The bug you reported has not been fixed. Silent Gho

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Bob. If you want me to apply the patch, just assign this back to me. -- ___ Python tracker ___ __

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-07-14 Thread Bob Ippolito
Changes by Bob Ippolito : -- assignee: bob.ippolito -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue21645] test_read_all_from_pipe_reader() of test_asyncio hangs on FreeBSD 9

2014-07-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbf991650441 by Victor Stinner in branch 'default': Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in http://hg.python.org/cpython/rev/dbf991650441 -- ___ Python tracker

[issue21645] test_read_all_from_pipe_reader() of test_asyncio hangs on FreeBSD 9

2014-07-14 Thread STINNER Victor
STINNER Victor added the comment: Buildbot where the issue occurs: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/ -- ___ Python tracker ___

[issue12955] urllib.request example should use "with ... as:"

2014-07-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list m

[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread akira
akira added the comment: > Aren't negative indexes well defined in Python? yes. I've provided the link to Python docs [1] in msg214642 that explicitly defines the behavior: > If i or j is negative, the index is relative to the end of the string: > len(s) + i or len(s) + j is substituted. Bu

[issue14379] Several traceback docs improvements

2014-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: As nobody has even commented on this, let alone proposed a patch, I'd be inclined to close as "won't fix" or "out of date". -- nosy: +BreamoreBoy ___ Python tracker ___

[issue15117] Please document top-level sqlite3 module variables

2014-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: @wchlm sorry about the delay in responding, but would you like to propose a patch for this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue17250] argparse: Issue 15906 patch; positional with nargs='*' and string default

2014-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Slipped under the radar? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15552] gettext: if looking for .mo in default locations, also look in locale-bundle location

2014-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: @Dominique please accept our apologies for the delay in replying. Can someone please review the attached patch as it's only five extra lines. I'd do it myself but I know nothing about openSUSE, internationalization or gettext. -- nosy: +BreamoreBoy _

[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: #7951 has an interesting debate on negative indexes that is possibly applicable here. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue16895] Batch file to mimic 'make' on Windows

2014-07-14 Thread Zachary Ware
Zachary Ware added the comment: Still relevant, but the current patch is overkill (Brian was right, it's just way more batch than is healthy to check in). Things are changing rapidly, though; I'll close it as "postponed" for now, with the expectation of reopening someday. -- assignee

[issue18397] Python with MinGW

2014-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Nothing has been done with #17605 or the associated issues to my knowledge. I've no idea as to whether or not the originator will be picking them up again or if he is open to another user picking them up. I do know that there are 56 open issues with mingw in

[issue21983] segfault in ctypes.cast

2014-07-14 Thread Anthony LaTorre
New submission from Anthony LaTorre: I get a segfault when trying to cast a string to a structure. >>> import ctypes >>> class Struct(ctypes.Structure): ... _fields_ = [('a', ctypes.c_uint32)] ... >>> s = '0'*100 >>> ctypes.cast(s,Struct) Segmentation fault The docs (https://docs.python.or

[issue21983] segfault in ctypes.cast

2014-07-14 Thread Anthony LaTorre
Changes by Anthony LaTorre : -- components: +ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue21984] list(itertools.repeat(1)) causes the system to hang

2014-07-14 Thread James Paget
New submission from James Paget: In Python 3.4, type: >>> import itertools >>> list(itertools.repeat(1)) The system will hang, and a cold reboot is necessary (at least on Windows). I expected some sort of "infinite list" exception to be thrown. -- components: Extension Modules messag

[issue17390] display python version on idle title bar

2014-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the repeated 'Python x.y.z: " in the listing is too much. #21588 has a patch but I am not ready to push it or do the review and revision needed . So I propose to reduce the current prefix to the minimum needed to know what version F5 will run the

[issue21815] imaplib truncates some untagged responses

2014-07-14 Thread Lita Cho
Changes by Lita Cho : -- nosy: +Lita.Cho, jesstess ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21984] list(itertools.repeat(1)) causes the system to hang

2014-07-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: It's unlikely to have hung the system entirely. It will slow down a lot though, as it will consume ridiculous amounts of RAM, and occasionally involve copying the existing data due to reallocation. The cost of performing this pointless work may consume enough

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, numpy's datetime and timedelta types have theoretical support for attoseconds. -- nosy: +pitrou ___ Python tracker ___

[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't have LibreSSL to test but the patch sounds fine to me. -- ___ Python tracker ___ ___ Python-

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: numpy's datetime64 and timedelta64 types are so utterly broken that I would only recommend studying them as a negative example of how not to design a date-time library. -- ___ Python tracker

[issue21983] segfault in ctypes.cast

2014-07-14 Thread eryksun
eryksun added the comment: You need to cast to a pointer type, i.e. POINTER(Struct). Trying to cast to just Struct should raise a TypeError. Instead this revealed a bug in cast_check_pointertype (3.4.1): http://hg.python.org/cpython/file/c0e311e010fc/Modules/_ctypes/_ctypes.c#l5225 dict->prot

[issue21815] imaplib truncates some untagged responses

2014-07-14 Thread Lita Cho
Lita Cho added the comment: I was reading the RFC spec, and it looks like it doesn't specificy '[' and ']' are not allowed in the PERNANENTFLAGS names. I can try to add a fix for this. But if anyone else knows if you are not allowed to have '[' or ']' in flag names, please let me know. -

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Tim Peters
Tim Peters added the comment: A note from Guido, from about 2 years ago: https://mail.python.org/pipermail/python-dev/2012-July/121127.html """ TBH, I think that adding nanosecond precision to the datetime type is not unthinkable. You'll have to come up with some clever backward compatibility i

[issue20117] subprocess on Windows: wrong return code with shell=True

2014-07-14 Thread eryksun
eryksun added the comment: For what it's worth, an explicit "exit" will set the return code to the last error. >>> subprocess.call("nonex & exit", shell=True, stderr=subprocess.DEVNULL) 9009 -- nosy: +eryksun ___ Python tracker <

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > (there's no room for an extra 10 bits in the > carefully arranged 8-byte internal representation) According to a comment on top of Include/datetime.h, the internal representation of datetime is 10, not 8 bytes. /* Fields are packed into successive byt

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 14/07/2014 21:37, Alexander Belopolsky a écrit : > > AFAIK, Python objects are allocated with at least 32-bit alignment, 64 bits, actually, when using obmalloc.c. -- ___ Python tracker

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Tim Peters
Tim Peters added the comment: Yup, it's definitely more than 8 bytes. In addition to the comments you quoted, an in-memory datetime object also has a full Python object header, a member to cache the hash code, and a byte devoted to saying whether or not a tzinfo member is present. Guessing G

[issue8519] doc: termios and ioctl reference links

2014-07-14 Thread Guido van Rossum
Guido van Rossum added the comment: In this case I think there is no legal issue. All you have to do is take the link from the patch and come up with a fresh patch of your own. (However I think Georg's objection against a Linux-specific link stands. You can probably find a POSIX link that woul

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Guessing Guido was actually thinking about the pickle size No, pickle also comes with an overhead >>> from datetime import * >>> import pickle >>> t = datetime.now() >>> len(pickle.dumps(t)) 70 For the present discussion, DATETIME_DATASIZE is the only

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Tim Peters
Tim Peters added the comment: Of course pickles come with overheads too - don't be tedious ;-) The point is that the guts of the datetime pickling is this: basestate = PyBytes_FromStringAndSize((char *)self->data, _PyDateTime_DATETIME_DATASIZE); That con

  1   2   >