[issue19697] refactor pythonrun.c to make use of specs (__main__.__spec__)

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

I'm fine with leaving __spec__ as None for those remaining cases.  It 
definitely simplifies this ticket. :)  Do you see any reason to not close this 
one at this point?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19697
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19697] Document the possible values for __main__.__spec__

2014-01-04 Thread Nick Coghlan

Nick Coghlan added the comment:

I think we need to document this somewhere. Not exactly sure where though - a 
new subsection in the import reference, perhaps?

--
title: refactor pythonrun.c to make use of specs (__main__.__spec__) - 
Document the possible values for __main__.__spec__

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19697
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18960] First line can be executed twice

2014-01-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, I had not compiled the code after last change, so first patch is wrong. 
Here is fixed patch.

--
Added file: http://bugs.python.org/file33307/source_encoding_second_line_2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18960
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine

New submission from Thomas Levine:

This works fine in Python 2.7, but it fails in Python 3.3.

[tlevine@wildebeest mailfest-scoreboard]$ python3 --version
Python 3.3.3
[tlevine@wildebeest mailfest-scoreboard]$ python3 setup.py register sdist
running register
Traceback (most recent call last):
  File setup.py, line 11, in module
scripts=['scoreboard']
  File /usr/lib/python3.3/distutils/core.py, line 148, in setup
dist.run_commands()
  File /usr/lib/python3.3/distutils/dist.py, line 929, in run_commands
self.run_command(cmd)
  File /usr/lib/python3.3/distutils/dist.py, line 948, in run_command
cmd_obj.run()
  File /usr/lib/python3.3/distutils/command/register.py, line 45, in run
self._set_config()
  File /usr/lib/python3.3/distutils/command/register.py, line 71, in 
_set_config
config = self._read_pypirc()
  File /usr/lib/python3.3/distutils/config.py, line 83, in _read_pypirc
current[key] = config.get(server, key)
  File /usr/lib/python3.3/configparser.py, line 790, in get
d)
  File /usr/lib/python3.3/configparser.py, line 391, in before_get
self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File /usr/lib/python3.3/configparser.py, line 440, in _interpolate_some
found: %r % (rest,))
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', 
found: '%rest-of-my-password'



Here are the relevant files.



[tlevine@wildebeest mailfest-scoreboard]$ cat ~/.pypirc 
[distutils]
index-servers =
pypi

[pypi]
username:tlevine
password:yh^%#rest-of-my-password
[tlevine@wildebeest mailfest-scoreboard]$ cat setup.py 
#!/usr/bin/env python3

from distutils.core import setup

setup(name='mailfest-scoreboard',
  version='0.0.1',
  description='Score mailfest participants',
  author='Thomas Levine',
  author_email='_...@thomaslevine.com',
  url='https://github.com/tlevine/mailfest-scoreboard',
  scripts=['scoreboard']
 )

--
components: Distutils
messages: 207275
nosy: tlevine
priority: normal
severity: normal
status: open
title: Percent-signs (%) in .pypirc should not be interpolated
type: behavior
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20120
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ea0aa3e32ab5 by Martin v. Löwis in branch '3.3':
Issue #17432: Drop UCS2 from names of Unicode functions in python3.def.
http://hg.python.org/cpython/rev/ea0aa3e32ab5

New changeset 0ea09c824d9b by Martin v. Löwis in branch 'default':
Merge with 3.3: Issue #17432: Drop UCS2 from names of Unicode functions in 
python3.def.
http://hg.python.org/cpython/rev/0ea09c824d9b

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17432
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine

Thomas Levine added the comment:

The relevant section  distutils/config.py seems no different in Python 2.7, so 
now I see this as a bug in configparser.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20120
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine

Thomas Levine added the comment:

Hmm now it looks to me like this is the intended behavior.
http://hg.python.org/cpython/file/ea0aa3e32ab5/Lib/test/test_configparser.py#l1541

Switching the single percent sign (%) to two (%%) in .pypirc makes it work. 
Maybe we can make a nicer error message though.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20120
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2014-01-04 Thread Martin v . Löwis

Martin v. Löwis added the comment:

This is now fixed for 3.3 and 3.4. Sorry it took so long.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17432
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19526] Review additions to the stable ABI of Python 3.4

2014-01-04 Thread Martin v . Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19526
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13115] tp_as_{number, sequence, mapping} can't be set using PyType_FromSpec

2014-01-04 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Since 3.2 has seen its last bugfix release, this won't be added to 3.2 anymore.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13115
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20115] NUL bytes in commented lines

2014-01-04 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage:  - needs patch
type: compile error - behavior
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20115
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20121] quopri_codec newline handling

2014-01-04 Thread Fred Stober

New submission from Fred Stober:

While trying to encode some binary data, I encountered this behaviour of the 
quopri_codec:

 '\r\n\n'.encode('quopri_codec').decode('quopri_codec')
'\r\n\r\n'
 '\n\r\n'.encode('quopri_codec').decode('quopri_codec')
'\n\n'

If this behaviour is really intended, it should be mentioned in the 
documentation that this coded is not bijective.

--
components: Library (Lib)
messages: 207281
nosy: fredstober
priority: normal
severity: normal
status: open
title: quopri_codec newline handling
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20121
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20115] NUL bytes in commented lines

2014-01-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Indeed.  CPython parser reads first line '#\x00\n' and save it in the buffer. 
But because C strings are used here (result of decode_str()), the line is 
truncated to '#'. As far as this data is not ended by '\n', it considered 
incomplete and next line is read and appended: '#' + 'a' - '#a'. And this line 
is commented out now.

--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20115
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2014-01-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Docstrings for new codecs mention bytes.transform() and bytes.untransform() 
which are nonexistent.

--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2014-01-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Raymond, will you have a chance to look at this before 3.4rc1? Otherwise I'd 
like to take it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8743] set() operators don't work with collections.Set instances

2014-01-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Raymond, will you have a chance to look at this before 3.4rc1? Otherwise I'd 
like to take it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5131] pprint doesn't know how to print a defaultdict

2014-01-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Closing this as a duplicate of issue 7434 (which is about redesigning pprint to 
make it easier to add support for new types)

--
nosy: +ncoghlan
resolution: accepted - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder:  - general pprint rewrite

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5131
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7434] general pprint rewrite

2014-01-04 Thread Nick Coghlan

Nick Coghlan added the comment:

With PEP 443 added for Python 3.4, I believe Łukasz intended to pursue a new 
pprint implementation based on functools.singledispatch.

That has obviously missed feature freeze for Python 3.4, but it's still a 
reasonable idea to pursue for 3.5.

In addition to OrderedDict (mentioned above) and defaultdict (which was 
mentioned in issue 5131), an updated pprint would also allow us to add support 
for the new dict view types, collections.deque, etc.

Ideally, we'd also have a standard lazy import mechanism in 3.5, so these 
definitions could go in the collections module, but only installed if pprint 
was also imported. Otherwise, having pprint depend on collections would likely 
be preferable to having the dependency run the other way.

--
nosy: +ncoghlan
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20114] Sporadic failure of test_semaphore_tracker() of test_multiprocessing_forkserver on FreeBSD 9 buildbot

2014-01-04 Thread Richard Oudkerk

Richard Oudkerk added the comment:

It is probably harmless then.

I don't think increasing the timeout is necessary -- the multiprocessing tests 
already take a long time.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20114
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread R. David Murray

R. David Murray added the comment:

It could be an issue of which configparser is/was used.

--
nosy: +lukasz.langa, r.david.murray
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20120
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20121] quopri_codec newline handling

2014-01-04 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20121
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20115] NUL bytes in commented lines

2014-01-04 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I guess NULL bytes should just be banned.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20115
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20122] Move CallTips tests to idle_tests

2014-01-04 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Proposed patch moves CallTips tests from Lib/idlelib/CallTips.py to 
Lib/idlelib/idle_test/test_calltips.py and converts them to unittests.

Private keyword-only parameter _namespace was added to fetch_tip() and 
get_entity().

--
components: IDLE, Tests
files: test_calltips.patch
keywords: patch
messages: 207291
nosy: kbk, roger.serwy, serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: patch review
status: open
title: Move CallTips tests to idle_tests
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33308/test_calltips.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20122
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2014-01-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Move CallTips tests to idle_tests
versions: +Python 2.7 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16630
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19903] Idle: Use inspect.signature for calltips

2014-01-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Move CallTips tests to idle_tests

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19903
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16655] IDLE list.append calltips test failures

2014-01-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Move CallTips tests to idle_tests

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16655
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7883] CallTips.py _find_constructor does not work

2014-01-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Move CallTips tests to idle_tests

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7883
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16638] support multi-line docstring signatures in IDLE calltips

2014-01-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Move CallTips tests to idle_tests

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16638
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b72c5573c5e7 by Serhiy Storchaka in branch 'default':
Issue #15027: Rewrite the UTF-32 encoder.  It is now 1.6x to 3.5x faster.
http://hg.python.org/cpython/rev/b72c5573c5e7

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2014-01-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I have doubts about this issue, so I have unassigned it from myself.

--
assignee: serhiy.storchaka - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17576
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Gregory for your review.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

In 3.x, the ConfigParser class is 2.x's SafeConfigParser, and the parsing rules 
are different (stricter, it seems).

It's probably a won't fix, I'd say.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20120
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19977] Use surrogateescape error handler for sys.stdin and sys.stdout on UNIX for the C locale

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

Yeah, unless there was a *huge* amount of support for changing this, it's way 
too late for 3.4.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19977
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

So, not to yank your chain, but... I'm okay with checking this in.  Yes, we're 
already in beta, but ModuleSpec is brand new, and the sense I get is that this 
use case is obscure even for ModuleSpec.  The only installed base is beta 1 
users, and given that this is new functionality...

Anyway.  I expect to tag late tonight, say in twelve hours.  Can you check it 
in before then?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread R. David Murray

R. David Murray added the comment:

More rational is probably closer to the truth :).

Yeah, it's probably a won't fix, but it would be nice to have Łukasz's input.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20120
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7434] general pprint rewrite

2014-01-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Ideally, we'd also have a standard lazy import mechanism in 3.5, so these 
 definitions could go in the collections module, but only installed if pprint 
 was also imported.

That sounds more like an on-import hook than a lazy import mechanism, no?

--
keywords: +easy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7434] general pprint rewrite

2014-01-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Oops... no, it's not easy.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7434] general pprint rewrite

2014-01-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, so why did Roundup add the easy keyword and doesn't want to remove it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7434] general pprint rewrite

2014-01-04 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords:  -easy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

Isn't this a new feature?

--
nosy: +larry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

I'm willing to risk it in 3.4.  Can you check it in in the next twelve hours?

(Sorry for the short notice, it slipped my mind until just now.)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19995
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19976] Argument Clinic: generate second arg for METH_NOARGS

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c4ababa110a2 by Larry Hastings in branch 'default':
Issue #19976: Argument Clinic METH_NOARGS functions now always
http://hg.python.org/cpython/rev/c4ababa110a2

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19976
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry if I have missed. Should I revert changeset b72c5573c5e7?

This patch doesn't introduce new functions and doesn't change behavior. Without 
this patch the UTF-32 encoder is up to 2.5x slower in 3.4 than in 3.3 (due to 
issue12892).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

Would you describe it as a bug fix or a security fix?  If it's neither of 
those things, then you need special permission to add it during beta.  And 
given that this patch has the possibility of causing bugs, I'd prefer to not 
accept it for 3.4.

Please revert it for now.  If you think it should go in to 3.4, you may ask on 
python-dev that it be considered and take a poll.  (Note that the poll is not 
binding on me; this is still solely my decision.  However if there was an 
uproar of support for your patch, that would certainly cause me to reconsider.)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20119] pdb c(ont(inue)) optional one-time-only breakpoint (like perl debugger)

2014-01-04 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20119
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20078] zipfile - ZipExtFile.read goes into 100% CPU infinite loop on maliciously binary edited zips

2014-01-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch with tests for all supported compression types.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file33309/zipfile_eof.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20078
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

I'll commit it in a little while.  Thanks.

--
versions: +Python 3.4 -Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19659] Document Argument Clinic

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e2280bf5c263 by Larry Hastings in branch 'default':
Issue #19659: Added documentation for Argument Clinic.
http://hg.python.org/cpython/rev/e2280bf5c263

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19659
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19659] Document Argument Clinic

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

I hid it in the howto directory.  Nobody'll look in there!  :D

--
assignee:  - larry
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19659
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1e345924f7ea by Serhiy Storchaka in branch 'default':
Reverted changeset b72c5573c5e7 (issue #15027).
http://hg.python.org/cpython/rev/1e345924f7ea

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution: fixed - 
stage: committed/rejected - patch review
status: closed - open
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19659] Document Argument Clinic

2014-01-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I hid it in the howto directory.  Nobody'll look in there!  :D

I think using a dotfile would make the hiding more efficient.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19659
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19843] Wait for multiple sub-processes to terminate

2014-01-04 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I'd rather see it bake in psutils for a while longer regardless of 
implementation.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19843
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19708] Check pkgutil for anything missing for PEP 451

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset acebe574ab08 by Eric Snow in branch 'default':
Issue #19708: Update pkgutil to use the new importer APIs.
http://hg.python.org/cpython/rev/acebe574ab08

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19708
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19713] Deprecate various things in importlib thanks to PEP 451

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a18c1a4cf30a by Eric Snow in branch 'default':
Issue #19713: Move away from using find_module/load_module.
http://hg.python.org/cpython/rev/a18c1a4cf30a

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19713
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a72a0e4dad20 by Eric Snow in branch 'default':
Issue #19927: Add __eq__ to path-based loaders in importlib.
http://hg.python.org/cpython/rev/a72a0e4dad20

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19708] Check pkgutil for anything missing for PEP 451

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

There wasn't much left to do for pkgutil after all. :)

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19708
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19713] Deprecate various things in importlib thanks to PEP 451

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

At this point the only places using find_module and load_module are pydoc, 
importlib, and some oddballs that aren't worth worrying about.  Issue #19703 
covers the pydoc changes.

--
dependencies: +Update pydoc to PEP 451

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19713
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

New submission from Eric Snow:

I'm guessing this is a very seldom (never?) used code path.  I've included a 
patch to test and fix the problem.  The patch includes several related tests 
for pydoc.

$ py3 -c 'import pydoc; 
pydoc.synopsis(/opt/python3.4/lib/python3.4/lib-dynload/time.cpython-34m.so)'
Traceback (most recent call last):
  File /opt/python3.4/lib/python3.4/tokenize.py, line 368, in find_cookie
line_string = line.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf4 in position 96: 
invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File string, line 1, in module
  File /opt/python3.4/lib/python3.4/pydoc.py, line 229, in synopsis
file = tokenize.open(filename)
  File /opt/python3.4/lib/python3.4/tokenize.py, line 429, in open
encoding, lines = detect_encoding(buffer.readline)
  File /opt/python3.4/lib/python3.4/tokenize.py, line 409, in detect_encoding
encoding = find_cookie(first)
  File /opt/python3.4/lib/python3.4/tokenize.py, line 373, in find_cookie
raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for 
'/opt/python3.4/lib/python3.4/lib-dynload/time.cpython-34m.so'

--
messages: 207319
nosy: eric.snow, larry
priority: normal
severity: normal
stage: patch review
status: open
title: pydoc.synopsis fails to load binary modules
type: behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19703] Update pydoc to PEP 451

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

Here's a new patch relative to the patch for issue #20123.

--
dependencies: +pydoc.synopsis fails to load binary modules
Added file: http://bugs.python.org/file33310/issue19703-use-new-api.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19703
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19703] Update pydoc to PEP 451

2014-01-04 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


Removed file: http://bugs.python.org/file33302/issue19703-use-new-api.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19703
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

FYI, I found this while working on issue #19703.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19713] Deprecate various things in importlib thanks to PEP 451

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

I should clarify.  That last commit was not the patch that adds the warnings.  
I'm going to update that patch and attach it here when I get the chance.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19713
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20124] The documentation for the atTime parameter of TimedRotatimeFileHandler is confusing

2014-01-04 Thread R. David Murray

New submission from R. David Murray:

The docs say that you can specify 'atTime' with a 'when' of 'midnight', but 
that makes no sense on the face of it.  atTime with a weekday specification 
makes sense, but it would also make sense to use atTime with a when of D (and 
an interval), which is not mentioned as a possibility.  It could also make 
sense to use it with other intervals (in other words, use the atTime as the 
starting point for the rotation calculation, instead of the last mod time or 
'now').  If that doesn't work it should be stated that atTime will be ignored 
in those cases.  

Probably all the time related entries should be rewritten with the existence of 
atTime in mind, in order to clarify all the possible (and not possible) 
interactions.

--
assignee: docs@python
components: Documentation
messages: 207323
nosy: docs@python, r.david.murray, vinay.sajip
priority: normal
severity: normal
stage: needs patch
status: open
title: The documentation for the atTime parameter of TimedRotatimeFileHandler 
is confusing
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20124
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19713] Deprecate various things in importlib thanks to PEP 451

2014-01-04 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

About last commit: Is there a way to avoid using private objects when removing 
uses of load_module?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19713
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19713] Deprecate various things in importlib thanks to PEP 451

2014-01-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Arfrever: not at this point. We really should have an 
importlib.util.load_from_spec() that hides those internal details.

Larry - can we get away with adding that? It didn't become obvious it was a 
missing API until Eric started doing these conversions.

--
nosy: +larry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19713
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20125] We need a good replacement for direct use of load_module(), post-PEP 451

2014-01-04 Thread Eric Snow

New submission from Eric Snow:

In issue #19713, it came up that while PEP 451 deprecated Loader.load_module(), 
it did not provide a suitable replacement for calling it directly.  We've 
worked around this in the stdlib by making calls to private APIs, but that 
won't work so well for the community at large.

The importlib._bootstrap._SpecMethods class is one we had considered making 
public, but decided to defer that decision until people demonstrated an 
interest/need.

At this point in the 3.4 release cycle I'm not sure how much we can do about 
it.  Adding something like the following would be easy, but then we'd be stuck 
indefinitely with an API that we may just deprecate in 3.5 (a one-hit wonder), 
though that might be the lesser evil.

def load_from_spec(spec):
_spec = importlib._bootstrap._SpecMethods(spec)
return _spec.load()

Adding that as a recipe to the load_module() docs wouldn't work too well 
either, since we'd still be advocating the use of a private API as a workaround.

To be honest, I'll have to defer to Brett, Nick, et al. on this one.  They have 
the experience to know the best approach to take here.  I just haven't been in 
the majors long enough.

(Where'd Guido put the keys to that time machine?)

--
components: Library (Lib)
messages: 207326
nosy: Arfrever, brett.cannon, eric.snow, ncoghlan
priority: high
severity: normal
status: open
title: We need a good replacement for direct use of load_module(), post-PEP 451
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20125
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19713] Deprecate various things in importlib thanks to PEP 451

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

Hmm.  That's a good question.  There really isn't a simple, public-API 
replacement.  I've opened issue #20125 to discuss our options.  Feel free to 
offer any suggestions there.  Thanks for bringing this up.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19713
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20125] We need a good replacement for direct use of load_module(), post-PEP 451

2014-01-04 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
nosy: +larry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20125
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

Well please get a second opinion.  I don't know why you added me, I'm not 
qualified.

--
nosy: +brett.cannon, ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19659] Document Argument Clinic

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

Doesn't help on Windows, junior!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19659
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

Not sure why I nosy'ed you, either. :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

You broke buildbots.  Please fix.

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/1389

--
assignee:  - eric.snow
priority: normal - high
resolution: fixed - 
stage: committed/rejected - needs patch
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Larry Hastings

Larry Hastings added the comment:

Hmm, hard to see how you caused that with the path loader change.  Still please 
take a quick look.

I fired off another build to see if it was a transient error, but that'll take 
a while.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

I'll take a look.  It could be something with #19713 or #19708 that also failed 
there.

The other failing buildbot for those 3 changesets is 
http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/7800.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread R. David Murray

R. David Murray added the comment:

In 2.7 the code just does an open.  Victor changed it to call tokenize.open in 
3.2, but tokenize.open obviously only works on python source files.  So the 
logic of that method is now completely wrong.

I'm not sure the logic made a lot of sense even before...if the extension is 
binary it just closes it again.  So the initial open is for its side effect of 
returning None if the file can't be opened.

Anyway, the logic of that method clearly needs to be rewritten.  And obviously 
there are some missing tests

I don't see any patch attached to the issue, by the way.

--
nosy: +haypo, r.david.murray
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

Thanks for taking a look.  Here's the patch that I totally forget to attach.

--
keywords: +patch
Added file: http://bugs.python.org/file33311/issue20123-fix-pydoc-synopsis.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20126] sched doesn't handle events added after scheduler starts

2014-01-04 Thread lo...@blossomhillranch.com

New submission from lo...@blossomhillranch.com:

Events added after the scheduler is running, with a delay value before the next 
event, do not run at the correct time.

import sched
import time
import threading

def event( eventNum ):
print( 'event', eventNum, time.time() )

s = sched.scheduler()
s.enter( 0,1,event, (0,) )
s.enter(10,1,event, (1,) )
t = threading.Thread( target = s.run )
t.start()
s.enter( 5,1,event, (2,) )


OUTPUT
event 0 1388890197.7716181
event 2 1388890207.7340584
event 1 1388890207.7347224

--
messages: 207336
nosy: lo...@blossomhillranch.com
priority: normal
severity: normal
status: open
title: sched doesn't handle events added after scheduler starts
type: behavior
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20126
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread R. David Murray

R. David Murray added the comment:

Is it the case that given a filename, it might be possible to load a module 
even if open(filename) fails?

I think the logic is clearer in the form where it is not pulled out into a 
separate helper function.  You can avoid the double check on the extension by 
doing:

if filename.endswith(importlib.machinery.BYTECODE_SUFFIXES):
loader = importlib.machinery.SourcelessFileLoader('__temp__',
  filename)
elif filename.endswith(importlib.machinery.EXTENSION_SUFFIXES):
loader = importlib.machinery.ExtensionFileLoader('__temp__',
 filename)
else:
loader = None

if loader:
x
else:
x

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20127] Race condition in test_threaded_import.task()?

2014-01-04 Thread Eric Snow

New submission from Eric Snow:

While looking at the logs of a buildbot failure [1], I took a look at 
Lib/test/test_threaded_import.py.  In 
ThreadedImportTests.check_parallel_module_init() it makes a bunch of threaded 
calls to the module-level task() function.  There may be a race condition in 
the finally clause of that function.  I don't have a lot of time to investigate 
further right now, but I'll take a closer look when I get the chance.

[1] http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/7800

--
components: Tests
messages: 207338
nosy: eric.snow
priority: normal
severity: normal
status: open
title: Race condition in test_threaded_import.task()?
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20127
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

The windows buildbot failure looks like a race condition in a test unrelated to 
my changes (see issue #20127).  I'm looking at the FreeBSD failure now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

Which passed on the subsequent run...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

The FreeBSD failure happened in test_threading (apparently), where it was the 
last test to finish.  In the passing run it finished 339/388 -- the seed was 
different (1253928 vs. 5389019).

This does not seem to be related to my 3 changesets.  I'm guessing it's one of 
those lingering race conditions we have sprinkled here and there.

--
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19927
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1065986] Fix pydoc crashing on unicode strings

2014-01-04 Thread R. David Murray

R. David Murray added the comment:

Made some review comments.

Looks good in general and it seems like the tests are fairly comprehensive.  I 
haven't tried to run any additional experiments, but I don't see how it could 
make things worse, since the new code paths will only do something different if 
unicode objects are actually involved.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1065986
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20126] sched doesn't handle events added after scheduler starts

2014-01-04 Thread R. David Murray

R. David Murray added the comment:

I believe this is a duplicate of issue 16165, which has already been fixed.

--
nosy: +r.david.murray
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - sched.scheduler.run() blocks scheduler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20126
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


Removed file: 
http://bugs.python.org/file33311/issue20123-fix-pydoc-synopsis.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

Sounds good to me.  Here's an updated patch.

--
Added file: http://bugs.python.org/file33312/issue20123-fix-pydoc-synopsis.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread R. David Murray

R. David Murray added the comment:

Looks good, except you can replace those any calls with simple calls to 
endswith using a tuple of strings (I forgot the call to tuple in my example).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d6c3fb8d5f84 by Eric Snow in branch 'default':
Issue 20123: Fix pydoc.synopsis() for binary modules.
http://hg.python.org/cpython/rev/d6c3fb8d5f84

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

Ah, I missed that in your earlier suggestion.  I followed your recommendation.  
Thanks for that. :)

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2014-01-04 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19729
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

This broke one of the FreeBSD buildbots:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6102

--
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ff3be21338d5 by Eric Snow in branch 'default':
Issue 20123: try using a different builtin module in a pydoc test.
http://hg.python.org/cpython/rev/ff3be21338d5

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11681] -b option undocumented

2014-01-04 Thread moijes12

Changes by moijes12 moije...@gmail.com:


--
nosy:  -moijes12

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11681
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue724459] Add documentation about line endings in email messages.

2014-01-04 Thread moijes12

Changes by moijes12 moije...@gmail.com:


--
nosy:  -moijes12

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue724459
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2679] email.feedparser regex duplicate

2014-01-04 Thread moijes12

Changes by moijes12 moije...@gmail.com:


--
nosy:  -moijes12

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2679
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16321] Move eq.h out of stringlib

2014-01-04 Thread moijes12

Changes by moijes12 moije...@gmail.com:


--
nosy:  -moijes12

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16321
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset efcf163d04f5 by Eric Snow in branch 'default':
Issue 20123: Disable a problematic test.
http://hg.python.org/cpython/rev/efcf163d04f5

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20123] pydoc.synopsis fails to load binary modules

2014-01-04 Thread Eric Snow

Eric Snow added the comment:

I've run out of time to trouble-shoot the failure (specific to 1 buildbot).  
Until I can get back to it, I've disabled the problematic test (even though 
it's only a problem on 1 buildbot).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20123
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >