[issue19065] sqlite3 timestamp adapter chokes on timezones

2015-08-23 Thread Gerhard Häring

Gerhard Häring added the comment:

I'm -1 because I believe that ultimately, adapters and converters were a 
mistake to add to pysqlite. That's why I deprecated them in pysqlite 2.8.0.

Do you know what would be the correct step to propose a deprecation in the 
sqlite3 module of Python proper? Is a PEP necessary?

--

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-23 Thread Mark Roseman

Mark Roseman added the comment:

I've put together a standalone tabs widget (mostly done) based on Tk canvas 
widget, that emulates the behaviour of TextMate's tabs. I was able to modify 
Roger's extension to use this widget. See attached screenshot newtabs.png (tabs 
area is fully functioning, bottom debug area is just UI).

--
Added file: http://bugs.python.org/file40234/newtabs.png

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



[issue24878] Add docstrings to selected named tuples

2015-08-23 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Thanks Petr

--

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



[issue24878] Add docstrings to selected named tuples

2015-08-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4432c441b639 by Raymond Hettinger in branch 'default':
Issue #24878: Fix typos and line wrap
https://hg.python.org/cpython/rev/4432c441b639

--

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



[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-23 Thread Brett Cannon

Brett Cannon added the comment:

Here is a patch that adds the C version of the frame skipping. Unfortunately it 
fails under test_threading, test_subprocess, test_multiprocessing_spawn. It's 
due to is_internal_frame() somehow although setting a breakpoint in gdb in that 
function never triggers. The return value is -11 from the interpreter and I 
don't remember what that represents.

--
Added file: http://bugs.python.org/file40233/issue24305.diff

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Brett Cannon

Brett Cannon added the comment:

I did an initial code review on the 3.6 patch.

What would it take to add clang support for PGO? Is it simply using different 
flags that configure can set in the generated Makefile? Or is it more involved 
and would require maintaining two separate compile lines in the Makefile?

--

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-08-23 Thread Ilya Kulakov

Ilya Kulakov added the comment:

Steve,

What's going to be the required msvc compiler for 3.5 on Windows?

--

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



[issue16379] SQLite error code not exposed to python

2015-08-23 Thread Gerhard Häring

Gerhard Häring added the comment:

I propose to also set the SQLite extended error code if this is implemented.

What's the reasoning behind offering a error code to name mapping? This seem 
problematic to me. In case a newer SQLite version introduces a new error code, 
this error code cannot be found in the mapping. I propose to leave this out in 
order to not have this problem.

Otherwise we will have people depending on any error code being able to be 
found in this mapping.

--

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

I received the review and will post new patch versions as soon as I update 
them. 

Regarding PGO on clang, I will need a bit more time to edit the Makefile and 
will post it just for clang, to be easier for us to see the differences.

--

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



[issue22140] python-config --includes returns a wrong path (double prefix)

2015-08-23 Thread Alexey Gorshkov

Alexey Gorshkov added the comment:

I don't understand: Why python-config needs to seek realpath? Why 
python-config is trying to be smarter than one who starts ./configure script?

As so, the right thing to this, is remove smart parts from python-config. But 
as for fast hack in to this is replace line 'prefix_real=$(installed_prefix 
$0)' with 'prefix_real=$prefix_build'.

--
nosy: +animus

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Alecsandru Patrascu

Changes by Alecsandru Patrascu alecsandru.patra...@intel.com:


Removed file: http://bugs.python.org/file40226/python2.7-3.6-pgo.zip

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Alecsandru Patrascu

Changes by Alecsandru Patrascu alecsandru.patra...@intel.com:


--
keywords: +patch
Added file: http://bugs.python.org/file40231/python2.7-pgo.patch

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Alecsandru Patrascu

Changes by Alecsandru Patrascu alecsandru.patra...@intel.com:


Added file: http://bugs.python.org/file40232/python3.6-pgo.patch

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



[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2015-08-23 Thread Paddy McCarthy

Paddy McCarthy added the comment:

OK, here's a suggested re-wording:

Python is an interpreted, interactive, object-oriented programming language 
that also supports programming in procedural and functional styles. It 
incorporates modules, exceptions, dynamic typing, very high level dynamic data 
types, and classes; but statements are not required to be contained in class 
definitions and functions are first class - being able to be composed, returned 
from other functions and be a member of other container types such as dicts, 
sets, and lists.

If that is too long,an alternative would be to delete my addition to the last 
sentence from ; but classes are not ... Leaving it to the reader to research 
just how procedural and functional Python can be. (Where should a programmer, 
but newbie-to-Python look)?

--

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

The patches are tested on Linux machines, with GNU GCC 4.8.3. From your output 
I see that you are using the CLANG compiler. CLANG uses a different set of 
flags for PGO that are not compatible with GCC's, therefore the compilation 
will fail. Can you please use the GNU GCC compiler to test the patches?

--

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

I added the patches as individual files and removed the zip file.

--

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



[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-23 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I'm not upset by the idea of monkey patching in Setuptools for vetting certain 
techniques. I've even considered having Setuptools adopt distutils entirely. 
Today I filed https://bitbucket.org/pypa/setuptools/issues/417/adopt-distutils 
to seed the discussion on that possibility. For the sake of this discussion, I 
would happily accept a pull request to supply the forward-compatible version of 
_nt_quote_args (or similar), allowing a window for other libraries to make the 
switch against versions of Python supported by Setuptools.

--

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Skip Montanaro

Skip Montanaro added the comment:

Is this supposed to work on Macs using Apple's version of gcc? I've got the 
latest version of Yosemite and XCode, and am getting these warnings when trying 
to build 2.7:

clang: warning: argument unused during compilation: '-fprofile-generate'

Should this be enabled using a configure check? Perhaps gcc/clang supports this 
but spells the feature differently. gcc --help tells me:

% gcc --help | egrep profile
  -fprofile-instr-generate
  -fprofile-instr-use=value
  Use instrumentation data for profile-guided 
optimization
  -fprofile-sample-use=value
  Enable sample-based profile guided optimizations

--
nosy: +skip.montanaro

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



[issue24915] Profile Guided Optimization active by-default

2015-08-23 Thread Skip Montanaro

Skip Montanaro added the comment:

It is executed using the gcc command:

% gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes  -fprofile-generate -I. -IInclude -I./Include   
-DPy_BUILD_CORE -o Modules/gcmodule.o Modules/gcmodule.c
clang: warning: argument unused during compilation: '-fprofile-generate'
% type gcc
gcc is /usr/bin/gcc

I have no idea if you can even use something other than clang on Macs now. In 
any case, the default compiler should work to build Python out of the box, if 
necessary, by checking things during configure.

--

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



[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-23 Thread Steve Dower

Steve Dower added the comment:

I notice you say adopt rather than vendor - effectively removing distutils 
from the stdlib?

It could work, but to really be able to move distutils forward we need some 
sort of side-by-side versioning, such that a package can declare which version 
of distutils is required, preferably without needing to download old versions 
on the fly when building. I'm sure it's possible but haven't got a complete 
vision yet.

Maybe it's as simple as having flags that setup scripts enable before they 
build?

import distutils
distutils.enable(distutils.flags.smart_quote_args)

That way we can actually change things without breaking old build scripts. 
Should be just as feasible if setuptools adopts distutils, but there'll 
probably be opposition from elsewhere along the lines of including core 
functionality in the stdlib.

--

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



[issue24912] The type of cached objects is mutable

2015-08-23 Thread Mark Shannon

Mark Shannon added the comment:

If there is another issue for this, then it doesn't seem to be a release 
blocker. I think it should be.

--
nosy: +Mark.Shannon

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



[issue20851] Update devguide to cover testing from a tarball

2015-08-23 Thread R. David Murray

R. David Murray added the comment:

How to do it is part of PEP 101 (https://www.python.org/dev/peps/pep-0101/).

--
nosy: +r.david.murray

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



[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

say, something to run a test until failure, or to
watch for reference leaks, or to run tests in multiple processes :-))

I think a few complimentary things.

unittest extensability currently requires a new CLI entry point for each thing. 
I'd like to fix that.

The actual plumbing is fairly extensible, though its not always obvious. I'd 
like to fix that too - without any global state getting involved.

Of the things you mention, running a given command line until failure and 
checking for reference leaks are both straight forward, very common requests 
(as is the gc check) and I'd like to see those implemented as extensions 
shipped in the stdlib.

Running in parallel becomes important when one is doing slow (e.g. functional) 
tests with unittest, and I think thats important to support. It is however much 
harder to do well: some of the current idioms that have snuck in (like the 
handling of stdout/stderr capturing without the buffer flag) are not well 
matched to the needs of reporting on concurrent tests to users. I'm not in any 
way opposed to a good implementation, but it would need to be good I think - 
there's not much point having a poor implementation, given the rich set of 
parallel test runners that are out there that already build on the unittest 
core (green, nose, testrepository just for starters). The only unique audience 
for stdlib test facilities is the stdlib itself and I think a better way to 
solve that is to enable the use of alternative runners for our own tests 
(moving them to be a little cleaner should enable that) - and then the point 
where it matters is really 'when buildbots would be enough faster to make a di
 fference'.

--

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



[issue22812] Documentation of unittest -p usage wrong on windows.

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

Thanks for the patch!

--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue22812] Documentation of unittest -p usage wrong on windows.

2015-08-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e285606efb82 by Robert Collins in branch '3.4':
Issue #22812: Fix unittest discovery examples.
https://hg.python.org/cpython/rev/e285606efb82

New changeset 875a851b9d5a by Robert Collins in branch '3.5':
Issue #22812: Fix unittest discovery examples.
https://hg.python.org/cpython/rev/875a851b9d5a

New changeset d9ec88a1e5d6 by Robert Collins in branch 'default':
Issue #22812: Fix unittest discovery examples.
https://hg.python.org/cpython/rev/d9ec88a1e5d6

--

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



[issue24919] Use user shell in subprocess

2015-08-23 Thread Jan Studený

New submission from Jan Studený:

According to POSIX specification the pathname of user shell is stored in SHELL 
(environmental variable, see 
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08) 
so I think that is good idea to use that pathname instead of hardcoded one.
Change is only in one line of subprocess package to use SHELL environmental 
variable and use hardcoded shell pathname as fallback.

lines 1431-1433
```
if shell:
args = [/bin/sh, -c] + args
if executable:
```

to

```
if shell:
args = [os.environ.get(SHELL,/bin/sh), -c] + args
if executable:
```

--
components: Library (Lib)
messages: 249023
nosy: Jan Studený
priority: normal
severity: normal
status: open
title: Use user shell in subprocess
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue23839] Clear caches after every test

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

Ok, so this is still in the noise space - it might be useful, it might not. Do 
we have reports of machines failing to run the test suite (that are also 
usefully big enough to compile Python and use it)?

--

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



[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-08-23 Thread eryksun

eryksun added the comment:

The 3.5 build uses MSVC 14 (VS 2015):

https://docs.python.org/3.5/using/windows.html#compiling-python-on-windows
https://hg.python.org/cpython/file/3.5/PCbuild/readme.txt

--
nosy: +eryksun

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



[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

Parameters please, TestCase has nothing to do with this - it really shouldn't 
even have the method.

--

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



[issue24168] Unittest discover fails with namespace package if the path contains the string same as the module name

2015-08-23 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


--
versions: +Python 3.5, Python 3.6

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



[issue24918] Docs layout bug

2015-08-23 Thread Carol Willing

Carol Willing added the comment:

The highlighting of code box extends beyond the bounds of the box to the far 
right of the page. A screenshot is attached as an example. The behavior occurs 
on all versions (3.2+, 2.7.x) except 2.6.

Thanks for reporting this issue.

--
nosy: +willingc
stage:  - needs patch
type:  - behavior
versions: +Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40235/Screenshot 2015-08-23 16.55.34.png

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



[issue20851] Update devguide to cover testing from a tarball

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

Possibly silly q: how does one /make/ a Python release tarball? 'make dist' 
which is the autoconf standard complains that it has no such target...

--
nosy: +rbcollins

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



[issue24919] Use user shell in subprocess

2015-08-23 Thread R. David Murray

R. David Murray added the comment:

Thanks for the suggestion, but that would make programs using subprocess 
non-portable.  There is an open issue to use the *default* shell instead of 
hard coding it (because the sh-alike is not at /bin/sh on, eg, Android), but 
using the user shell would break lots of programs.  Your suggestion was brought 
up by a core dev (and rejected) in that issue (issue 16255)

--
nosy: +r.david.murray
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - subrocess.Popen needs /bin/sh but Android only has 
/system/bin/sh

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



[issue24633] README file installed into site-packages conflicts with package named readme

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

Applied to 3.6 only (since I don't want to disrupt the 3.5 release train, and 
think that making packagers adjust on a point release would be mean).

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

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



[issue19469] Duplicate namespace package portions (but not on Windows)

2015-08-23 Thread Caio Ariede

Caio Ariede added the comment:

I tried to reproduce it using Python 3.4.3 and 3.4.2. No luck.

--
nosy: +Caio Ariede
status: pending - open

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



[issue22812] Documentation of unittest -p usage wrong on windows.

2015-08-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3256764fadae by Robert Collins in branch '2.7':
Issue #22812: Fix unittest discovery examples.
https://hg.python.org/cpython/rev/3256764fadae

--
nosy: +python-dev

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



[issue2786] Names in traceback should have class names, if they're methods

2015-08-23 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


--
stage: needs patch - commit review

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



[issue24918] Docs layout bug

2015-08-23 Thread asldkjfn

New submission from asldkjfn:

Green bars cover yellow text box. 
https://docs.python.org/2/faq/windows.html

--
assignee: docs@python
components: Documentation
messages: 249018
nosy: docs@python, reag
priority: normal
severity: normal
status: open
title: Docs layout bug
versions: Python 2.7

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



[issue20851] Update devguide to cover testing from a tarball

2015-08-23 Thread Larry Hastings

Larry Hastings added the comment:

To make the tarballs, I use the release.py script from here:

https://hg.python.org/release

and run release.py --export versionnumber.  I haven't peeked inside the 
black box to see how the sausage is made.

--

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



[issue24055] unittest package-level set up tear down module

2015-08-23 Thread Robert Collins

Robert Collins added the comment:

Personally I'm very skeptical of all the multi-test setup facilties because of 
the very poor interactions with parallel testing that this basic approach has. 
But - we haven't yet brought in something sensible to let us deprecate 
setUpModule and setUpClass, so I could not reject it on that basis.

I'd have to see a patch or a prototype to comment on the maintainability etc.

--

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



[issue24920] shutil.get_terminal_size throws AttributeError

2015-08-23 Thread eryksun

eryksun added the comment:

FYI, the size of the terminal associated with the C's stdout isn't related to 
the IDLE shell. For example, in Linux when I run IDLE from the GUI, the 
associated terminal size is 0x0. 

On Windows, os.get_terminal_size uses the console API 
GetConsoleScreenBufferInfo. This can't work given IDLE has no attached console. 
Also, for a GUI app the Windows C runtime leaves the standard FILE streams 
uninitialized to an invalid file descriptor (-1), so Python's sys.__stdout__ is 
None. That's why you get an AttributeError complaining that NoneType (i.e. 
type(None)) has no attribute 'fileno'.

Currently shutil.get_terminal_size returns the fallback size when 
os.get_terminal_size(sys.__stdout__.fileno()) raises NameError or OSError. I 
think AttributeError and ValueError should be added to this list.

--
components: +Windows -IDLE
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware
versions: +Python 3.5, Python 3.6

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



[issue24920] shutil.get_terminal_size throws AttributeError

2015-08-23 Thread Isaac Levy

New submission from Isaac Levy:

OS: windows 7, python 3.4.3, tk version 8.6.1

os.get_terminal_size also fails.


 shutil.get_terminal_size()
Traceback (most recent call last):
  File pyshell#4, line 1, in module
shutil.get_terminal_size()
  File C:\Python34\lib\shutil.py, line 1058, in get_terminal_size
size = os.get_terminal_size(sys.__stdout__.fileno())
AttributeError: 'NoneType' object has no attribute 'fileno'
 os.get_terminal_size()
Traceback (most recent call last):
  File pyshell#5, line 1, in module
os.get_terminal_size()
ValueError: bad file descriptor

--
components: IDLE
messages: 249039
nosy: Isaac Levy
priority: normal
severity: normal
status: open
title: shutil.get_terminal_size throws AttributeError
type: crash
versions: Python 3.4

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