Re: Noob confused by ConfigParser defaults

2017-02-19 Thread Ben Finney
Ian Pilcher  writes:

> How do a set a default for option-1 *only* in section-1?

I think you misinderstand the semantics of what ‘configparser’ expects
:

Default values […] are used in interpolation if an option used is
not defined elsewhere.

When default_section is given, it specifies the name for the special
section holding default values for other sections and interpolation
purposes (normally named "DEFAULT").

The default values are a special pseudo-section that holds defaults for
the named options *anywhere else* in the configuration. It's not done
per-section, it's done for the entire configuration input.

This is IIUC because of the long-standing semantics of the format that
inspired the ConfigParser behaviour.

-- 
 \  “Software patents provide one more means of controlling access |
  `\  to information. They are the tool of choice for the internet |
_o__) highwayman.” —Anthony Taylor |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue27660] Replace size_t with Py_ssize_t as the type of local variable in list_resize

2017-02-19 Thread Xiang Zhang

Xiang Zhang added the comment:

I opened a PR on GitHub for this issue. Hope Raymond you could review it some 
time.

--
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue27660] Replace size_t with Py_ssize_t as the type of local variable in list_resize

2017-02-19 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +155

___
Python tracker 

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



[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-19 Thread Jim DeLaHunt

Jim DeLaHunt added the comment:

> Note that the result of getgroups(2) is fixed on login, while "id -G" 
> reflects the current state of the user database on macOS.

Wow, that's interesting!  Thank you for this information.

The test code for test_getgroups does not mention this interaction.  I can 
certainly see how it could affect the test. Maybe it should be added?

Since I last tried that test, I've logged out and restarted several times, and 
changed OS to Mac OS X 10.11 El Capitan. Nothing like changing several 
independent variables at once while diagnosing! I will try the test again and 
report back.

--

___
Python tracker 

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



Re: Python application launcher (for Python code)

2017-02-19 Thread Ben Finney
"Deborah Swanson"  writes:

> I could probably write this myself, but I'm wondering if this hasn't
> already been done many times.

Can you describe what you are looking for, in enough detail that we can
know whether it's already been done as you want it?

-- 
 \  “God forbid that any book should be banned. The practice is as |
  `\  indefensible as infanticide.” —Dame Rebecca West |
_o__)  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-19 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Note that the result of getgroups(2) is fixed on login, while "id -G" reflects 
the current state of the user database on macOS. Could this explain this 
failure? That is, have you tried logging out and in again before running the 
test suite?

--

___
Python tracker 

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



[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Xiang Zhang added the comment:

Although no feedback from Saida, but IMHO the problem is solved so I close it 
now.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset 9a4577a4bb23888fed2cf192cf1a4c95ce5c26f8 by GitHub in branch 
'3.6':
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref 
objects (#128) (#186)
https://github.com/python/cpython/commit/9a4577a4bb23888fed2cf192cf1a4c95ce5c26f8


--

___
Python tracker 

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



[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset 7c95a94c3ab41e4296e94335d66b2400ad16f052 by GitHub in branch 
'3.5':
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref 
objects (#128) (#188)
https://github.com/python/cpython/commit/7c95a94c3ab41e4296e94335d66b2400ad16f052


--

___
Python tracker 

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



[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset 7131a73f9655cfd325c798385905326f57b94640 by GitHub in branch 
'2.7':
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref 
objects (#128) (#187)
https://github.com/python/cpython/commit/7131a73f9655cfd325c798385905326f57b94640


--

___
Python tracker 

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



[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-19 Thread Xiang Zhang

Changes by Xiang Zhang :


--
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

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



Noob confused by ConfigParser defaults

2017-02-19 Thread Ian Pilcher

I am trying to use ConfigParser for the first time (while also writing
my first quasi-serious Python program).  Assume that I want to parse a
a configuration file of the following form:

  [section-1]
  option-1 = value1
  option-2 = value2

  [section-2]
  option-1 = value3
  option-2 = value4

How do a set a default for option-1 *only* in section-1?

--

Ian Pilcher arequip...@gmail.com
 "I grew up before Mark Zuckerberg invented friendship" 


--
https://mail.python.org/mailman/listinfo/python-list


Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-19 Thread breamoreboy
On Saturday, February 18, 2017 at 6:03:37 PM UTC, Wildman wrote:
> On Sat, 18 Feb 2017 09:38:32 -0800, TTaglo wrote:
> 
> > i = 1
> > f = open ('rosalind_ini5(1).txt')
> > for line in f.readlines():
> > if i % 2 == 0:
> > print line
> > i += 1
> > 
> > 
> > How do i get output without breaks between the lines?
> > 
> > Result:
> > 
> > Other things just make you swear and curse
> > 
> > When you're chewing on life's gristle, don't grumble give a whistle
> > 
> > This will help things turn out for the best
> > 
> > Always look on the bright side of life
> 
> In Python 3 you can do this:
> 
> print(line, end="")
> 
> For Python 2 use this:
> 
> import sys
>   .
>   .
>   .
> sys.stdout.write(line)
> 
> Don' forget...
> f.close()
> 
> -- 
>  GNU/Linux user #557453
> The cow died so I don't need your bull!

For Python 2, strictly from memory:-

from __future__ import print_function

print(line, end="")

Kindest regards.

Mark Lawrence.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +154

___
Python tracker 

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



[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +153

___
Python tracker 

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



[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +152

___
Python tracker 

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



[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset d0e8212ed70445cc3d48b0d4ae7c9cb480004010 by GitHub in branch 
'master':
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref 
objects (#128)
https://github.com/python/cpython/commit/d0e8212ed70445cc3d48b0d4ae7c9cb480004010


--

___
Python tracker 

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



Python application launcher (for Python code)

2017-02-19 Thread Deborah Swanson
I could probably write this myself, but I'm wondering if this hasn't
already been done many times.  Anyone have some git links or other
places to download from?
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova

Julia Dolgova added the comment:

http://bugs.python.org/issue23384 - same problem

--

___
Python tracker 

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



[issue29602] complex() on object with __complex__ function loses sign of zero imaginary part

2017-02-19 Thread Steven D'Aprano

Changes by Steven D'Aprano :


--
nosy: +steven.daprano

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

INADA Naoki added the comment:


New changeset e395c4dbe19115aaab315c2a113b172e9fef307a by GitHub in branch 
'master':
bpo-29520: doc: add missing dot (GH-182)
https://github.com/python/cpython/commit/e395c4dbe19115aaab315c2a113b172e9fef307a


--

___
Python tracker 

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



[issue29602] complex() on object with __complex__ function loses sign of zero imaginary part

2017-02-19 Thread Tom Krauss

New submission from Tom Krauss:

Consider the following simple class that provides a "__complex__" method.

class C(object):
  def __init__(self, x):
 self.x = x
  def __complex__(self):
return self.x

x=C(-0j)

PYTHON 2.7.13
>>> x.x
-0j
>>> complex(x)
0j

PYTHON 3.6
>>> x.x
(-0-0j)
>>> complex(x)
(-0+0j)

--
messages: 288177
nosy: Tom Krauss
priority: normal
severity: normal
status: open
title: complex() on object with __complex__ function loses sign of zero 
imaginary part
type: behavior
versions: Python 2.7, Python 3.6

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

INADA Naoki added the comment:


New changeset 7970cd483346dfd7723da214fb27399ecc574095 by GitHub in branch 
'3.6':
bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-178)
https://github.com/python/cpython/commit/7970cd483346dfd7723da214fb27399ecc574095


--

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

INADA Naoki added the comment:


New changeset f0174c69b7b8bd27ee32d96e890d665da29472af by GitHub in branch 
'3.5':
bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-179)
https://github.com/python/cpython/commit/f0174c69b7b8bd27ee32d96e890d665da29472af


--

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

INADA Naoki added the comment:


New changeset cf44d957ec177be62f5349ef88515190dcfccbd6 by GitHub in branch 
'2.7':
bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-180)
https://github.com/python/cpython/commit/cf44d957ec177be62f5349ef88515190dcfccbd6


--

___
Python tracker 

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



[issue29529] Backport Travis configuration

2017-02-19 Thread INADA Naoki

INADA Naoki added the comment:


New changeset 98604c7683f41f04c633935bb582399c50db838c by GitHub in branch 
'2.7':
bpo-29529: Add .travis.yml to 2.7 branch (GH-27)
https://github.com/python/cpython/commit/98604c7683f41f04c633935bb582399c50db838c


--

___
Python tracker 

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



[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova

Julia Dolgova added the comment:

Why not to take it into account? 

Imagine that someone wants that requests to "ovinnik.canonical.com" should 
bypass proxy and requests to "ubuntu.com" souldn't. I don't know what for, it's 
just an assumption. 
He adds a hostname "ovinnik.canonical.com" into  and checks 
requests in IE. He sees that requests to "ovinnik.canonical.com" bypass proxy 
and requests to "ubuntu.com" go via proxy. And it's ok.
But suddenly he discovers that requests in urllib to "ubuntu.com" bypass proxy 
and it's unexpected. 

I think this behavior of urllib should be at least optional.

--

___
Python tracker 

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



[issue12450] Use the Grisu algorithms to convert floats to strings

2017-02-19 Thread Bart Robinson

Bart Robinson added the comment:

Six years later, I have accepted Amaury's challenge and created an extension 
module that uses the double-conversion library to generate repr's for floats: 
https://pypi.python.org/pypi/frepr

My rudimentary performance testing gives something like 8X speedup compared to 
the standard float_repr().

Scrutiny and suggestions welcome...

--
nosy: +Bart Robinson

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +151

___
Python tracker 

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



[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2017-02-19 Thread Vinay Sajip

Vinay Sajip added the comment:


New changeset a86339b83fbd0932e0529a3c91935e997a234582 by GitHub in branch 
'master':
Fixed bpo-29565: Corrected ctypes passing of large structs by value on Windows 
AMD64. (#168)
https://github.com/python/cpython/commit/a86339b83fbd0932e0529a3c91935e997a234582


--

___
Python tracker 

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



[issue29565] Still broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2017-02-19 Thread Vinay Sajip

Vinay Sajip added the comment:


New changeset a86339b83fbd0932e0529a3c91935e997a234582 by GitHub in branch 
'master':
Fixed bpo-29565: Corrected ctypes passing of large structs by value on Windows 
AMD64. (#168)
https://github.com/python/cpython/commit/a86339b83fbd0932e0529a3c91935e997a234582


--

___
Python tracker 

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



[issue29601] Need reST markup for enum types

2017-02-19 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Feb 20, 2017, at 12:03 AM, Fred L. Drake, Jr. wrote:

>Is there some special treatment you think should be given to specific enum
>values as well?

The only thing I thought about was optionally provide the enum item's value,
when that's useful.  Usually you shouldn't care what the item's value is, but
maybe sometimes you do, and in that case it would be nice if there was a way
to express that.

--

___
Python tracker 

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



[issue29601] Need reST markup for enum types

2017-02-19 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. added the comment:

Is there some special treatment you think should be given to specific enum 
values as well?

--
nosy: +fdrake

___
Python tracker 

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



[issue11572] bring Lib/copy.py to 100% coverage

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Agree. The latter simplification can be applied to pickle.py.

--

___
Python tracker 

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



[issue11572] bring Lib/copy.py to 100% coverage

2017-02-19 Thread Berker Peksag

Berker Peksag added the comment:

All changes to Lib/test/test_copy.py have already been committed.

Perhaps the following hunks from the latest patch can still be useful:

-try:
-d[types.CodeType] = _deepcopy_atomic
-except AttributeError:
-pass
+d[types.CodeType] = _deepcopy_atomic

---

 def _deepcopy_tuple(x, memo):
+if not x:
+return x

---

-try:
-issc = issubclass(cls, type)
-except TypeError: # cls is not a class (old Boost; see SF #502085)
-issc = 0
-if issc:
+if issubclass(cls, type):

--
status: pending -> open

___
Python tracker 

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



[issue18195] error when deep copying module is confusing

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This issue looks as enhancement rather than bug fix. Since it is fixed in 3.6 
I'm closing it.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



[issue22273] abort when passing certain structs by value using ctypes

2017-02-19 Thread Eryk Sun

Eryk Sun added the comment:

Structs that are larger than 32 bytes get copied to the stack (see 
classify_argument in ffi64.c), so we don't have to worry about classifying 
their elements for register passing. Thus if a new field is added for this in 
StgDictObject, then PyCArrayType_new should only allocate it for array types 
that are 32 bytes or less. Using it for larger array types would serve no point.

> explain the working on Windows/failing on Linux.

In the Windows libffi we don't have examine_argument() and classify_argument(). 
The Win64 ABI is fairly simple [1]. A struct that's 8 bytes or less gets passed 
as an integer, so if it's in the first four arguments it gets passed in rcx, 
rdx, r8, or r9. Otherwise it gets copied and passed by reference. Unlike the 
64-bit Unix ABI, we don't have to worry about packing struct elements across 
multiple registers or passing floating-point elements in vector registers.

[1]: https://msdn.microsoft.com/en-us/library/zthk2dkh.aspx

--

___
Python tracker 

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



[issue29540] Add compact=True flag to json.dump/dumps

2017-02-19 Thread Bob Ippolito

Bob Ippolito added the comment:

I would recommend a moratorium on new options until we have a plan to make the 
usage of the JSON APIs simpler overall. It's accumulated too many options over 
time. The real trouble is figuring out how to do this in a backwards compatible 
way that does not impact performance too much. Off-hand, I can't think of any 
obvious way aside from using new function names with a cleaner options list.

--

___
Python tracker 

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



[issue29554] profile/pstat doc clariification

2017-02-19 Thread Matthias Bussonnier

Changes by Matthias Bussonnier :


--
pull_requests: +148, 149, 150

___
Python tracker 

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



[issue29554] profile/pstat doc clariification

2017-02-19 Thread Matthias Bussonnier

Changes by Matthias Bussonnier :


--
pull_requests: +148, 149

___
Python tracker 

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



Re: WANT: bad code in python (for refactoring example)

2017-02-19 Thread Dotan Cohen
There are some nice changes in here. You can mention to the students
that I really appreciated the work done on the menu loop. You took an
example of code that had grown piecemeal and become reasonably
unmaintainable, and refactored it to be very maintainable in the
future.

Good luck to all class participants!

On Fri, Feb 17, 2017 at 3:47 PM, Makoto Kuwata  wrote:
> On Thu, Feb 16, 2017 at 6:34 AM, Dotan Cohen  wrote:
>
>> I think that we can help each other! This is my own code, back when I
>> was writing Python like PHP:
>> https://github.com/dotancohen/burton
>
>
> Year, this is a good example code for me to do refactoring.
>
> I created a pull request. This will be shown to my students.
>
> https://github.com/dotancohen/burton/pull/20/files
>
> I hope you favor this PR.
>
> --
> regards,
> makoto kuwata
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue29554] profile/pstat doc clariification

2017-02-19 Thread Matthias Bussonnier

Changes by Matthias Bussonnier :


--
pull_requests: +148

___
Python tracker 

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



[issue29540] Add compact=True flag to json.dump/dumps

2017-02-19 Thread Andrew Nester

Andrew Nester added the comment:

Adding new argument sucs as format= or compact= will make API more complicated. 
In addition it's not easy and has obvious how to handle situations wheb we have 
both separatots= and format= arguments set.

--

___
Python tracker 

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



[issue23655] Memory corruption using pickle over pipe to subprocess

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue23655] Memory corruption using pickle over pipe to subprocess

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Without additional information we can't solve this issue. Is the problem still 
reproduced?

--
status: pending -> open

___
Python tracker 

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



[issue23655] Memory corruption using pickle over pipe to subprocess

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue29442] Replace optparse with argparse in setup.py

2017-02-19 Thread Brett Cannon

Brett Cannon added the comment:

I just wanted to acknowledge that I read this thread. I accept Chi's 
acknowledgement of his actions and I hope there aren't future missteps, but 
please also realize that there has been a warning about how you communicate 
here, Chi.

--

___
Python tracker 

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



[issue13566] Increase pickle compatibility

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is a problem when pickle data in Python 3 for unpickling in Python 2.

--
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue24159] Misleading TypeError when pickling bytes to a file opened as text

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think it is worth to improve the error message in the write() method of 
binary files.

>>> sys.stdout.write(b'')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: write() argument must be str, not bytes
>>> sys.stdout.buffer.write('')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: a bytes-like object is required, not 'str'
>>> sys.stdout.buffer.raw.write('')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: a bytes-like object is required, not 'str'

But this is large issue. Other file-like objects (GzipFile, ZipExtFile etc) 
should be updated too.

--
nosy: +serhiy.storchaka
type: behavior -> enhancement
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-19 Thread Andrew Nester

Andrew Nester added the comment:

any updates on this? :)

--

___
Python tracker 

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



[issue9267] Update pickle opcode documentation in pickletools for 3.x

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue29580] "Built-in Functions" not being functions

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue11975.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue11572] bring Lib/copy.py to 100% coverage

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is anything left to do with this issue? Many changes were made in the copy 
module and tests last year.

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue26959] pickle: respect dispatch for functions again

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is saving global an atomic operation? Falling back to using reduce can be not 
safe if some data was written during saving global. That also might make error 
messages less helpful. Is not founding a function the only cause of 
PicklingError? Raising and catching an exception is not very efficient. 
Shouldn't the fallback be used for classes and C functions?

If add this feature the patch should be significantly reworked.

--
nosy: +serhiy.storchaka
stage: patch review -> needs patch
type: behavior -> enhancement
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue14336] Difference between pickle implementations for function objects

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In 3.x the fallback was removed by 6bd1f0a27e8e. If this is 2.7 only issue I 
prefer to close it as "won't fix".

See also issue26959.

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue14124] _pickle.c comment/documentation improvement

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Using absolute line numbers in comments looks bad idea to me. This becomes 
outdated very fast. The code of _pickle.c was changed many times since writing 
the patch.

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue18400] Minor increase to Pickle test coverage

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Just make C and D protected or private.

class Foo(Flag):
A = auto()
B = auto()
AB = A | B
_C = auto()
__D = auto()
AC = A | _C
ABD = A | B | __D

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Marc Guetg

Marc Guetg added the comment:

One made-up use-case would be:

class LogLevel(Flags):
start = auto()
log1 = start | auto()
log2 = start | auto()


def fun(flags, *args):
if start in flags:
# open log file

if log1 in flags:
   # Log important thing 1

if log2 in flags:
   # Log important thing 2

if start in flags:
   # close log file


Alternatively the same could be achieved using the existing capabilities with:

class LogLevel(Flags):
 start = auto()
 _log1 = auto()
 log1 = start | _log1
 _log2 = auto()
 log2 = start | _log2

Which is less clear imho and could potentially a problem if somebody uses 
LogLevel._log2


Another alternative would be that within the function we would check for all 
cases. eg:

if (start in flags) or (log1 in flags) or (log2 in flags):

Which leads to less clear code and makes the code less maintainable when log3 
gets introduced. In the existing case we need to remember to change the if 
clause both when opening and closing the file. After the proposed change we 
only need to change the enum.

I'm sure there are more use-cases for it. The one I'm using it for is a bit 
more convoluted that's why I'm not presenting it here.

--

___
Python tracker 

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



[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-19 Thread Xavier de Gaye

Xavier de Gaye added the comment:

> CPython's support for Android targets only stable releases of the official 
> NDK.

As the NDK is seeing many changes in the recent past and near future 
(deprecation of the support of gcc in favor of clang, Unified Headers, nearly 
all the NDK scripts written in python, ...) we should use the latest stable NDK 
release.

> That includes all building time and runtime results.

You can open new issues for NDK r14 with the description of the problem and 
with NDK r14 building time and runtime results, as a reminder of what will need 
to be done when we switch to r14 as it was done for issue 29040. But please no 
PR. Maybe add a comment saying that for the moment this is just a reminder.

--

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +147

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +146

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +145

___
Python tracker 

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



[issue29601] Need reST markup for enum types

2017-02-19 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

Over in https://github.com/python/cpython/pull/138 I noticed that we don't 
currently have markup for enum types.  While class:: is technically still 
correct, it's not helpful because the html documentation should render this as 
`Enum SafeUUID` not `class SafeUUID`.

--
assignee: docs@python
components: Documentation
messages: 288147
nosy: barry, berker.peksag, docs@python
priority: normal
severity: normal
status: open
title: Need reST markup for enum types
versions: Python 3.7

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki

INADA Naoki added the comment:


New changeset 3eea8c67fa870c6e2b7a521d292afe7fe3e95f58 by GitHub in branch 
'master':
bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-165)
https://github.com/python/cpython/commit/3eea8c67fa870c6e2b7a521d292afe7fe3e95f58


--

___
Python tracker 

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



[issue22807] uuid.uuid1() should use uuid_generate_time_safe() if available

2017-02-19 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue22807] uuid.uuid1() should use uuid_generate_time_safe() if available

2017-02-19 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
resolution:  -> fixed

___
Python tracker 

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



[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Julien Palard

Julien Palard added the comment:

Your implementation looks right, but I don't see the point of defining 
combinations AB, AC, ABD in the Foo enum. Foo may only define A, B, C, D and 
outside of Foo anyone can build any needed combinations.

This way it looks clear in the Foo declaration (4 lines, 4 auto()). Did I 
missed a usefull usage of declaring combination inside the enum?

--
nosy: +mdk

___
Python tracker 

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



[issue29529] Backport Travis configuration

2017-02-19 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +144

___
Python tracker 

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



[issue28754] Argument Clinic for bisect.bisect_left

2017-02-19 Thread Julien Palard

Changes by Julien Palard :


--
pull_requests: +143

___
Python tracker 

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



[issue24339] iso6937 encoding missing

2017-02-19 Thread Julien Palard

Julien Palard added the comment:

John: You should probably package this as a pip module alongisde with a git 
repository, at least to measure qty of interested persones, and get some 
feedback / contributions.

--

___
Python tracker 

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



[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue22273] abort when passing certain structs by value using ctypes

2017-02-19 Thread Vinay Sajip

Vinay Sajip added the comment:

I've not marked it "patch review" as the patch isn't complete. Just wanted to 
see if anyone can reproduce/explain the working on Windows/failing on Linux.

--

___
Python tracker 

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



[issue22273] abort when passing certain structs by value using ctypes

2017-02-19 Thread Vinay Sajip

Vinay Sajip added the comment:

> I think we can special-case small arrays in PyCStructUnionType_update_stgdict

Is that definitely the right place? And is doing it only for small arrays going 
to be enough? Currently, PyCStructUnionType_update_stgdict does

dict = PyType_stgdict(desc);

and then

stgdict->ffi_type_pointer.elements[ffi_ofs + i] = >ffi_type_pointer;

where dict is the ctypes object for the field type. If the ffi_type_pointer is 
used all over the place because arrays usually degenerate to pointers, and 
changing it would cause breakage elsewhere, maybe the answer is to have a new 
ffi_type_array field which is NULL for non-array types and set correctly for 
array types; then the above code can check for a non-NULL ffi_type_array and 
use that instead of the ffi_type_pointer? Or am I talking nonsense?

Oddly (or perhaps not), this failure doesn't seem to occur on Windows - no 
crash happens and the correct value is returned from a function which sums the 
array, as in this example. See attached patch.

--
keywords: +patch
Added file: http://bugs.python.org/file46652/fix-22273-01.diff

___
Python tracker 

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



[issue29559] Detect mouse over lines on canvas while mouse button is down

2017-02-19 Thread Xiang Zhang

Changes by Xiang Zhang :


--
nosy: +gpolo, serhiy.storchaka

___
Python tracker 

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



[issue28886] Move deprecated abc module decorators to separate section in docs

2017-02-19 Thread Harshul

Changes by Harshul :


--
keywords: +patch
Added file: http://bugs.python.org/file46651/bpo-28886_3.7.patch

___
Python tracker 

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



[issue28886] Move deprecated abc module decorators to separate section in docs

2017-02-19 Thread Harshul

Changes by Harshul :


--
pull_requests: +141

___
Python tracker 

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



[issue29574] python-3.6.0.tgz permissions borked

2017-02-19 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +ned.deily

___
Python tracker 

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



[issue11299] Allow deepcopying paused generators

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I concur with Antoine.

copy.deepcopy() should be used with care since it recursively copies all 
referred data. In case of generators the data can be referred implicitly. Every 
global value cached in local variable, every passed argument, every nonlocal 
variable should be copied. This may not just wastes memory and CPU time, but 
change the semantic.

--
nosy: +serhiy.storchaka
resolution:  -> rejected
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue29599] Github organization link is secret and not accessible from core-dev guide

2017-02-19 Thread Sanyam Khurana

Sanyam Khurana added the comment:

Thanks a lot Berker! I've reported the issue there at 
https://github.com/python/devguide/issues/124

--

___
Python tracker 

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



[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Steve Dower

Steve Dower added the comment:

My guess is that IE is implemented using lower level APIs and it can choose 
whether to bypass based on its own list. There's no reason for any other 
software to take its settings into account.

That said, it would be great if urllib can avoid adding long delays, at least 
more than once. I'm personally not sure how best to do that though.

--

___
Python tracker 

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



[issue10701] Error pickling objects with mutating __getstate__

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
status: open -> pending
type: behavior -> enhancement
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.3, Python 3.4

___
Python tracker 

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



[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-19 Thread Berker Peksag

Berker Peksag added the comment:

FWIW, I also prefer PR 120 over PR 117. However, if Steven prefers PR 120 we 
probably should merge it only in master.

--
nosy: +berker.peksag
stage:  -> patch review
versions: +Python 3.5, Python 3.7

___
Python tracker 

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



[issue29592] abs_paths() in site.py is slow

2017-02-19 Thread INADA Naoki

INADA Naoki added the comment:

I got it.
removeduppaths() may change relpath in sys.path to absolute path.
abs_paths() changes __file__ and __cached__ for consistency with the changed 
sys.path.

I updated PR 167 to call abs_paths() only if removeduppaths() modified sys.path.
Strictly speaking, abs_paths() is required only when removeduppaths() converted 
relpath to absolute path.

But because duplicated paths are rare too, I think this approach is practical 
enough.

--

___
Python tracker 

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



[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka
type: crash -> behavior

___
Python tracker 

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



[issue9592] Limitations in objects returned by multiprocessing Pool

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The problem with pickling exceptions should be addressed in other issue 
(issue29466). Other problems seems are solved.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue29237] Create enum for pstats sorting options

2017-02-19 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Thank you, Ratnadeep.
I've been assigned to this issue, and have made some progress on it. I'm away 
for a conference right now, and I plan on getting back once I'm back.
Will it be possible for you to work on a different issue?
Thanks.

--

___
Python tracker 

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



[issue29599] Github organization link is secret and not accessible from core-dev guide

2017-02-19 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the report. I agree that the link can be removed. We have a separate 
issue tracker for devguide at https://github.com/python/devguide/issues Please 
report this there.

--
nosy: +berker.peksag
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue29600] Returning an exception object from a coroutine triggers implicit exception chaining?!?

2017-02-19 Thread Nathaniel Smith

New submission from Nathaniel Smith:

The following code prints "KeyError()", which is obviously wrong and rather 
baffling. Just passing an exception object around *as an object* should not 
trigger implicit exception chaining!

If you replace the async functions with regular functions then it prints 
"None", as expected.

Checked on 3.5, 3.6, and more-or-less current master -- bug is present in all 3.



async def f():
return ValueError()

async def g():
try:
raise KeyError
except:
value_error = await f()
print(repr(value_error.__context__))

try:
g().send(None)
except StopIteration:
pass

--
components: Interpreter Core
messages: 288133
nosy: njs
priority: normal
severity: normal
status: open
title: Returning an exception object from a coroutine triggers implicit 
exception chaining?!?
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue7438] Allow to use a part of subprocess module during building Python

2017-02-19 Thread Chi Hsuan Yen

Changes by Chi Hsuan Yen :


--
nosy: +Chi Hsuan Yen

___
Python tracker 

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



[issue15317] Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle

2017-02-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue29442] Replace optparse with argparse in setup.py

2017-02-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> (example: usage of os.system() in some places)

See similar issue7438.

--

___
Python tracker 

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



[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue29599] Github organization link is secret and not accessible from core-dev guide

2017-02-19 Thread Sanyam Khurana

New submission from Sanyam Khurana:

On visiting link: https://docs.python.org/devguide/coredev.html#github

The first sentence is "You will be added to the Python core team on GitHub."

The ``Python core team`` refers to a link to Github which is not accessible to 
anyone except for those who are part of the organization.

I'd like to suggest to either remove the link from the documentation or make 
the team visible to public.

--
assignee: docs@python
components: Documentation
messages: 288131
nosy: CuriousLearner, docs@python, ncoghlan
priority: normal
severity: normal
status: open
title: Github organization link is secret and not accessible from core-dev guide
type: behavior

___
Python tracker 

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



[issue29592] abs_paths() in site.py is slow

2017-02-19 Thread Nick Coghlan

Nick Coghlan added the comment:

Note that "os" doesn't get imported normally, it gets injected as part of the 
importlib bootstrapping process (since _bootstrap_external.py needs the os 
module in order to work).

--

___
Python tracker 

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



[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-19 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Thanks for the response. Sorry if my previous work on Android brings confusion.

To prevent possible wasting of time in the future, I'd like to confirm myself 
for some conclusions: CPython's support for Android targets only stable 
releases of the official NDK. That includes all building time and runtime 
results. I guess that's the current policy? Thanks in advance for any further 
replies.

--

___
Python tracker 

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



[issue29592] abs_paths() in site.py is slow

2017-02-19 Thread Nick Coghlan

Nick Coghlan added the comment:

CI failure indicating it isn't redundant, but could still potentially be made 
faster since non-absolute paths should be relatively rare now:

==

FAIL: test_s_option (test.test_site.HelperFunctionsTests)

--

Traceback (most recent call last):

  File "/home/travis/build/python/cpython/Lib/test/test_site.py", line 173, in 
test_s_option

self.assertIn(usersite, sys.path)

AssertionError: '/home/travis/.local/lib/python3.7/site-packages' not found in 
['', '/usr/local/lib/python37.zip', '/home/travis/build/python/cpython/Lib', 
'/home/travis/build/python/cpython/build/lib.linux-x86_64-3.7-pydebug']

==

FAIL: test_abs_paths (test.test_site.ImportSideEffectTests)

--

Traceback (most recent call last):

  File "/home/travis/build/python/cpython/Lib/test/test_site.py", line 365, in 
test_abs_paths

.format(os__file__.decode('ascii')))

AssertionError: False is not true : expected absolute path, got ../../Lib/os.py

--

--

___
Python tracker 

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



[issue29442] Replace optparse with argparse in setup.py

2017-02-19 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

I see your points. Indeed in many times I didn't think carefully before leaving 
a comment, and not even noticing that my comments can be offensive afterwards. 
I apologize for all those cases and I'll be more careful when interacting with 
others in the future.

@Xavier: I'm gratitude for your patience on taking so much time explaining what 
I've done wrong. It's an invaluable course.

Let me change the title of this issue first. That will make it more moderate 
and also clearer.

--
title: Use argparse and drop dirty optparse hacks in setup.py -> Replace 
optparse with argparse in setup.py

___
Python tracker 

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



[issue29598] Write unit tests for pdb module

2017-02-19 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Please use one single PR only when the tests are focused on a single topic and 
can be collected in their own class. When the tests are focused on breakpoints 
for example.

--
nosy: +xdegaye

___
Python tracker 

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



  1   2   >