[issue19954] test_tk floating point exception on my gentoo box with tk 8.6.1

2014-07-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Mark, pending state here means that I think this issue should be closed, but 
what to see agreement from David (as issue starter and as other core developer).

--

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



[issue21925] ResourceWarning sometimes doesn't display

2014-07-13 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever
title: ResouceWarning sometimes doesn't display - ResourceWarning sometimes 
doesn't display
versions: +Python 3.5

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



[issue20026] sqlite: handle correctly invalid isolation_level

2014-07-13 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: commit review - resolved
status: open - closed

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



[issue7405] compiling python 3.1.1 using cygwin 1.7.0 and gcc 4.3.4

2014-07-13 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +jlt63, stutzbach
versions: +Python 3.4, Python 3.5 -Python 3.1

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



[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember

New submission from Thomas Kember:

I am a retired programmer. I still like to write small programs for my own 
interest. Python is ideal for this. I prefer to use Idle rather than the 
command line. For some time now when I click on the Idle shortcut on the home 
screen, the command line screen flashes and then nothing. I am not able to do 
anything on Idle. I had been using Python33. So I upgraded to Python34. It was 
the same thing. I looked at the batch file, idle.bat. This is what it contains.

@echo off
rem Start IDLE using the appropriate Python interpreter
set CURRDIR=%~dp0
start IDLE %CURRDIR%..\..\pythonw.exe %CURRDIR%idle.pyw %1 %2 %3 %4 %5 %6 
%7 %8 %9

I don't understand what %~dp0 means. I can't think what changes I have made to 
the operating system, it is Windows 7, that could cause this problem.

As I say Python is great for what I do. But I am stuck with the command line if 
I cannot fix this.

Tomk

--
messages: 222916
nosy: Tomk
priority: normal
severity: normal
status: open
title: Can't use Idle
type: behavior
versions: Python 3.4

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



[issue8526] msilib doesn't support multiple CAB instances in same installer

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Steve/Zach just FYI

--
nosy: +BreamoreBoy, steve.dower, zach.ware
versions: +Python 3.5 -Python 3.3

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



[issue14484] missing return in win32_kill?

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Zach can you add anything to this?

--
nosy: +BreamoreBoy, zach.ware
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue21973] Can't use Idle

2014-07-13 Thread SilentGhost

SilentGhost added the comment:

This is the normal content of idle.bat
Could you run `c:\python34\python.exe -m idlelib.idle` from the command-line 
and post the output here?

--
components: +IDLE
nosy: +SilentGhost, kbk, roger.serwy, terry.reedy

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



[issue15962] Windows STDIN/STDOUT Redirection is actually FIXED

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

This can be closed as out of date as extensive changes made to the Windows 
FAQ have removed the wording referenced in the patch.

--
nosy: +BreamoreBoy

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



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

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

Just a reminder that there are comments on Rietveld.

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

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



[issue17717] Set up nasm from external.bat

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

I think a message as suggested in msg187571 would be more than adequate.

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

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



[issue5773] Crash on shutdown after os.fdopen(2) in debug builds

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

Using latest default.

c:\cpython\PCbuildpython_d -c import os; os.fdopen(2)
-c:1: ResourceWarning: unclosed file _io.TextIOWrapper name=2 mode='r' 
encoding='cp1252'

Do we need to do anything with 2.7, can this be closed or what?

--
nosy: +BreamoreBoy
versions:  -Python 2.6

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



[issue14484] missing return in win32_kill?

2014-07-13 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue15962] Windows STDIN/STDOUT Redirection is actually FIXED

2014-07-13 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue21974] Typo in Set in PEP 289

2014-07-13 Thread Quan Nguyen

New submission from Quan Nguyen:

This statement in the Rationale section:

s = Set(word  for line in page  for word in line.split())

Set should be set (lowercase 's')

--
assignee: docs@python
components: Documentation
messages: 222924
nosy: Quan.Nguyen, docs@python
priority: normal
severity: normal
status: open
title: Typo in Set in PEP 289

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



[issue1175984] Make subprocess.Popen support file-like objects (win)

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

I believe this should be closed as the patch refers to various win32xxx imports 
that no longer exists in subprocess.py.

--
nosy: +BreamoreBoy

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



[issue1260171] subprocess: more general (non-buffering) communication

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

Please note the work being performed on #1191964 which was first referenced in 
msg54591.

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.2

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-13 Thread Andy Maier

Changes by Andy Maier andreas.r.ma...@gmx.de:


Added file: http://bugs.python.org/file35938/try_eq.py

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-13 Thread Andy Maier

Changes by Andy Maier andreas.r.ma...@gmx.de:


Added file: http://bugs.python.org/file35939/try_eq.out

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



[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-07-13 Thread Martijn Pieters

Martijn Pieters added the comment:

Yeah, I should have thought of that in the first place. Done, and thanks, Ned!

--

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



[issue16070] Structure and native Structure (LittleEndianStructure on Windows) supports __slots__, but BigEndianStructure doesn't

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@hct I'm very sorry about the delay in getting back to you.  The reported 
bevaviour is the same with 3.4.1 and 3.5.0a0 on Windows 7.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2

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



[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember

Thomas Kember added the comment:

I ran what you said. Here's what I got.

C:\Python34c:\python34\python.exe -m idlelib.idle
Traceback (most recent call last):
  File c:\python34\lib\runpy.py, line 170, in _run_module_as_main
    __main__, mod_spec)
  File c:\python34\lib\runpy.py, line 85, in _run_code
    exec(code, run_globals)
  File c:\python34\lib\idlelib\idle.py, line 10, in module
    import idlelib.PyShell
  File c:\python34\lib\idlelib\PyShell.py, line 29, in module
    from idlelib.EditorWindow import EditorWindow, fixwordbreaks
  File c:\python34\lib\idlelib\EditorWindow.py, line 22, in module
    from idlelib.configHandler import idleConf
  File c:\python34\lib\idlelib\configHandler.py, line 703, in module
    idleConf=IdleConf()
  File c:\python34\lib\idlelib\configHandler.py, line 171, in __init__
    self.LoadCfgFiles()
  File c:\python34\lib\idlelib\configHandler.py, line 694, in LoadCfgFiles
    self.userCfg[key].Load() #same keys
  File c:\python34\lib\idlelib\configHandler.py, line 68, in Load
    self.read(self.file)
  File c:\python34\lib\configparser.py, line 672, in read
    self._read(fp, filename)
  File c:\python34\lib\configparser.py, line 1058, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\\Users\\Tomk\\.idlerc\\config-extensions.cfg', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'


 From: SilentGhost rep...@bugs.python.org
To: t.kemb...@btinternet.com 
Sent: Sunday, 13 July 2014, 13:15
Subject: [issue21973] Can't use Idle

SilentGhost added the comment:

This is the normal content of idle.bat
Could you run `c:\python34\python.exe -m idlelib.idle` from the command-line 
and post the output here?

--
components: +IDLE
nosy: +SilentGhost, kbk, roger.serwy, terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21973
___

--

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



[issue16623] argparse help formatter does not honor non-breaking space

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

The example code works fine using 3.4.1 and 3.5.0a0 on Windows 7.

--
nosy: +BreamoreBoy, paul.j3

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



[issue16786] argparse doesn't offer localization interface for version action

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Thorsten sorry about the delay involved here.

--
nosy: +BreamoreBoy, paul.j3
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue21973] Can't use Idle

2014-07-13 Thread SilentGhost

SilentGhost added the comment:

If you would delete this file: C:\Users\Tomk\.idlerc\config-extensions.cfg 
(back it up some place else just in case). Does it start? and if not, would you 
mind re-running the same command again?

--

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



[issue16807] argparse group nesting lost on inheritance

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Dougal sorry about the delay in getting back to you.

--
nosy: +BreamoreBoy, paul.j3
versions: +Python 3.5 -Python 3.2, Python 3.3

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



[issue16376] wrong type for wintypes.BYTE

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

All cbytes tests passed after the change was made but I've no idea as to the 
impact of this.

--
keywords: +patch
nosy: +BreamoreBoy
versions:  -Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file35940/Issue16376.diff

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



[issue21972] Bugs in the lexer and parser documentation

2014-07-13 Thread François-René Rideau

François-René Rideau added the comment:

Actually, my reading was buggy, and the u part is well-documented enough. 
Apologies for this part of the bug report.

The lexer documentation is still missing the ellipsis, though

Other bug I found in the lexer documentation: missing @=

And the parser documentation of  is probably a bug.

--

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



[issue21925] ResourceWarning sometimes doesn't display

2014-07-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

May be save the timestamp for module importing and then clean up modules them 
in reversed order?

--
nosy: +serhiy.storchaka

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-13 Thread Andy Maier

Andy Maier added the comment:

Mark: Both are good points!

Would you add the cases from your second comment under symmetry?

--

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



[issue21861] io class name are hardcoded in reprs

2014-07-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I now see that this issue is not so easy from C side.

And more, it is very uncommon for either Python or C implementations (especial 
C implementations) to introspect to figure out their real name. Existing 
cases are rather exceptions. And in many case this is only a side effect of 
sharing an implementation between several classes (set and frozenset, three 
buffered file classes in io, etc). In many cases repr's flexibility is limited: 
hardcoded or omitted module name, used class's __name__ instead of 
__qualname__, etc.

This should be discussed on Python-Dev maillist.

--

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



[issue8519] doc: termios and ioctl reference links

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

My understanding is that we can't use the patches as the originator has never 
signed the CLA.  Am I correct or does this only apply to code, or what?

--
nosy: +BreamoreBoy

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



[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember

Thomas Kember added the comment:

Thanks, I backed that file on to a memory stick and deleted it. I made a 
shortcut to the idle batch file on the desktop. When I click on it, Idle comes 
up fine.
What has happened here? What is config-extensions.cfg for and why has it 
stopped Idle coming up? And  why can Idle work without it? In any case, I am 
now able to work on my little programs.
Thank you again.
Tomk


 From: SilentGhost rep...@bugs.python.org
To: t.kemb...@btinternet.com made a 
Sent: Sunday, 13 July 2014, 15:30
Subject: [issue21973] Can't use Idle

SilentGhost added the comment:

If you would delete this file: C:\Users\Tomk\.idlerc\config-extensions.cfg 
(back it up some place else just in case). Does it start? and if not, would you 
mind re-running the same command again?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21973
___

--

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



[issue20858] Enhancements/fixes to pure-python datetime module

2014-07-13 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Brian,

Could you, please update the summary of your changes from your first post?  For 
example, you did not mention caching of the timedelta hashes.

This particular chance seems to call for a discussion.

Do we cache timedelta hashes in C implementation?  What is the general wisdom 
on this technique?  AFAICR, such hashing is done in integer objects, but I 
vaguely remember an old discussion on whether the same should be done for 
tuples.  Can you remind me what was the outcome for tuples?

--

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



[issue20858] Enhancements/fixes to pure-python datetime module

2014-07-13 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

 Updated patch, now it also caches the result of __hash__ like the C 
 accelerator.

I should read your notes!  Sorry, Brian.  You already answered my questions.  
Too bad that the latest notes are so far from the entry area.

Still, it would be helpful if you could provide a self-contained description 
that I can copy to the NEWS file.  (Don't put it in the patch  - NEWS file gets 
out of date very quickly - put it in a tracker comment.)

Also, with your patch, are we in sync with PyPy?  If so, with what version?

--

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



[issue21973] Can't use Idle

2014-07-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
Removed message: http://bugs.python.org/msg222943

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



[issue21973] Can't use Idle

2014-07-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
Removed message: http://bugs.python.org/msg222930

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



[issue21973] Can't use Idle

2014-07-13 Thread SilentGhost

SilentGhost added the comment:

IDLE supports extensions: https://docs.python.org/3/library/idle.html#extensions
And that was a user-configuration file that got corrupted somehow. As it's an 
optional feature, IDLE can work without it.

You can use your favourite text editor to compose programs and then use console 
to run them. It might be more convenient even for smaller programs.

--
resolution:  - not a bug
stage:  - resolved

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



[issue21973] Can't use Idle

2014-07-13 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
status: open - closed

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



[issue20858] Enhancements/fixes to pure-python datetime module

2014-07-13 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

[Josh Rosenberg]
 You've just given me an excuse to open my first bug.

Did you open an issue for that?  (Use n code in date/datetime constructors.)

--

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



[issue20858] Enhancements/fixes to pure-python datetime module

2014-07-13 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Here is the tuple hash caching thread that I mentioned above:

https://mail.python.org/pipermail/python-dev/2003-August/037416.html

Since the C code uses caching already, I don't think we need to discuss it any 
further.  And the thread on tuples does not give any good reason not to cache 
anyways.

--

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



[issue20328] mailbox: add method to delete mailbox

2014-07-13 Thread R. David Murray

R. David Murray added the comment:

I find it surprising that deleting a mailbox does not delete subfolders.  What 
is the rationale for that?

--

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



[issue21935] Implement AUTH command in smtpd.

2014-07-13 Thread R. David Murray

R. David Murray added the comment:

I think it would be a good idea to write the documentation.  It is much easier 
to get a feel for the API via docs than it is via code.  (That is, when you 
explain how to use the API, you sometimes find design bugs :)

for a/b: so you are thinking of an auth function passed in as opposed to a 
method overridden in the subclass?  That is consistent with how we enable other 
capabilities, so it has some attraction.

I haven't gone over the code in detail yet, but it looks like you need to add a 
reset of 'self.user' during the applicable state transitions.

--

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



[issue21951] tcl test change crashes AIX

2014-07-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is following test passed?

check((1,), '1')

Is CPython crashes when change signature of testfunc?

--- a/Lib/test/test_tcl.py  Sat Jul 12 18:26:03 2014 +0300
+++ b/Lib/test/test_tcl.py  Sun Jul 13 19:21:55 2014 +0300
@@ -416,7 +416,7 @@
 
 def test_user_command(self):
 result = None
-def testfunc(arg):
+def testfunc(arg=None, *args):
 nonlocal result
 result = arg
 return arg

--

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



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

2014-07-13 Thread R. David Murray

R. David Murray added the comment:

The python command just returns.

The dmesg was a good call:

python invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0
python cpuset=pydev mems_allowed=0
[...]
Out of memory: kill process python(28623:#112) score 85200 or a child
Killed process python(28623:#112) vsz:340800kB, anon-rss:330764kB, 
file-rss:3864kB

I *thought* I had this virtual server configured with the same resources as I 
do the buildbots, but I could be wrong.  It's been quite some time since I set 
both of them up, and I don't even remember how the resources are set at the 
moment.

Let me know if you want to see the entire dmesg output.

--

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



[issue1610654] cgi.py multipart/form-data

2014-07-13 Thread R. David Murray

R. David Murray added the comment:

To move this issue along we need someone to convert it into our standard patch 
format (a unified diff against either the 3.4 or the default branch, 
preferrably produced via an 'hg diff' command without the --git option), with 
the test included as a unit test added to the appropriate test file 
(tests/test_cgi.py).

--

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



[issue16726] expat ParseFile expects bytes, not string

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Michiel I'm sorry about the delay in replying to you.  I can confirm the same 
behaviour in 3.4.1 on 3.5.0a0 on Windows 7.

--
nosy: +BreamoreBoy, christian.heimes
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue14094] nt.realpath() should use GetFinalPathNameByHandle() when available

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm assuming that this should be treated as an enhancement request.

--
nosy: +BreamoreBoy
type:  - enhancement
versions: +Python 3.5 -Python 3.3

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



[issue16561] Windows installer doesn't use UAC, then crashes

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm assuming that this is still an issue.  I've not tested it myself as I've 
never understood why python gets put in Program Files so I don't have such a 
setup and won't be creating one.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5

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



[issue1186900] nntplib shouldn't raise generic EOFError

2014-07-13 Thread Jessica McKellar

Changes by Jessica McKellar jesst...@mit.edu:


--
keywords: +needs review
stage: test needed - patch review

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



[issue21585] Run Tkinter tests with wantobjects=False

2014-07-13 Thread Jessica McKellar

Changes by Jessica McKellar jesst...@mit.edu:


--
keywords: +needs review
stage: needs patch - patch review

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



[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2014-07-13 Thread Jessica McKellar

Changes by Jessica McKellar jesst...@mit.edu:


--
keywords: +needs review
stage: needs patch - patch review

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



[issue16458] subprocess.py throw The handle is invalid error on duplicating the STD_INPUT_HANDLE

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

Is XP under Python support now?  I'm sure I've read that it isn't but can't 
find a reference.

--
nosy: +BreamoreBoy

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



[issue16123] IDLE - deprecate running without a subprocess

2014-07-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

It would be nice if we are able to to this in 3.5, because the dependecy is 
accomplished, but not doing so is not a release blocker.

--
dependencies: +Idle: use pipes instead of sockets to talk with user subprocess
priority: deferred blocker - normal
stage:  - needs patch

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



[issue1186900] nntplib shouldn't raise generic EOFError

2014-07-13 Thread Berker Peksag

Berker Peksag added the comment:

diff -r 8f85262fbe8a Lib/nntplib.py
--- a/Lib/nntplib.pySun Jul 06 02:24:24 2014 -0400
+++ b/Lib/nntplib.pyThu Jul 10 16:10:38 2014 -0700
@@ -122,6 +122,9 @@
 Error in response data
 pass
 
+class NNTPConnectError(NNTPError):
+Error during connection establishment.
+pass

Could you also document the new exception? (See Doc/library/nntplib.rst and 
please add a versionadded directive)

The pass statement is redundant, but we could keep it to be consistent with 
rest of the library.


@@ -435,7 +438,7 @@
 raise NNTPDataError('line too long')
 if self.debugging  1:
 print('*get*', repr(line))
-if not line: raise EOFError
+if not line: raise NNTPConnectError()

if not line:
raise NNTPConnectError

looks more readable to me.

Also, you could add a more descriptive error message.

--
nosy: +berker.peksag
versions: +Python 3.5 -Python 3.2

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



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

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

Any thoughts from our Windows gurus?

--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
type:  - enhancement
versions: +Python 3.5 -Python 3.3

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



[issue1186900] nntplib shouldn't raise generic EOFError

2014-07-13 Thread Ezio Melotti

Ezio Melotti added the comment:

Wouldn't this be backward incompatible?
Even if the EOFError that is raised is not documented explicitly, people might 
be catching it, and switching to a new exception would break their programs.  
Maybe NNTPConnectError should inherit from EOFError too?

--
nosy: +ezio.melotti

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



[issue1186900] nntplib shouldn't raise generic EOFError

2014-07-13 Thread Lita Cho

Lita Cho added the comment:

That's a good point. I can add that so the NNTPConnectError can inherit the 
EOFError

--

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



[issue21973] Idle should not quit on corrupted user config files

2014-07-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Explanation: there are a few config-xy files in lib/idlelib that contain 
default configuration values. Custom values for a particular user, which 
override the defaults, are kept in a .idlerc directory placed in a users home 
directory (here C:/users/Tomk).  Config-main and config-keys are edited by Idle 
in response to entries in the preferences/options dialog. Any can be edited by 
hand.

Since Idle can work without these files, I consider it a bug that it quits when 
there is a bad one. Instead of raising an uncaught exception, it should display 
a warning message and continue*. It could also offer to delete or rename the 
file so the message does not reappear the next time Idle is started.

* (Note to myself) This could be done either by replacing the raise statement 
or by catching the exception further up the call chain, where other errors 
could be caught too, and all turned into warnings.

We are actively working on improving the error handling for config-keys, but I 
don't know if there is an issue for this particular error. So I am re-opening 
this issue until this problem is fixed or I know that this is a duplicate 
report. 

Thomas, thank you for the report, and in particular for the full traceback. 
when you reply by email, please delete the message you are responding to except 
possibly for a line or two that you need to quote. When viewed on the site, 
your response is placed just beneath the previous one, so bulk quoting is 
redundant.

--
resolution: not a bug - 
stage: resolved - test needed
status: closed - open
title: Can't use Idle - Idle should not quit on corrupted user config files
versions: +Python 2.7, Python 3.5

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



[issue15962] Windows STDIN/STDOUT Redirection is actually FIXED

2014-07-13 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - out of date
stage: needs patch - resolved
status: open - closed

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



[issue1186900] nntplib shouldn't raise generic EOFError

2014-07-13 Thread Lita Cho

Lita Cho added the comment:

Here is an updated patch.

--
Added file: http://bugs.python.org/file35941/nntplib_error.patch

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



[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

Anything else to do here, noting the references to #21059 and #20035 ?  Great 
work by the way, things on Windows are far cleaner than they were just a few 
months ago.

--
nosy: +BreamoreBoy

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



[issue21951] tcl test change crashes AIX

2014-07-13 Thread David Edelsohn

David Edelsohn added the comment:

 Is following test passed?

 check((1,), '1')

That test succeeds.

 Is CPython crashes when change signature of testfunc?

--- a/Lib/test/test_tcl.py  Sat Jul 12 18:26:03 2014 +0300
+++ b/Lib/test/test_tcl.py  Sun Jul 13 19:21:55 2014 +0300
@@ -416,7 +416,7 @@
 
 def test_user_command(self):
 result = None
-def testfunc(arg):
+def testfunc(arg=None, *args):
 nonlocal result
 result = arg
 return arg

This change does not have any effect on the original failure. The assertion 
failure and crash continues to occur.

--

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



[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2014-07-13 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue10395] new os.path function to extract common prefix based on path components

2014-07-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is revised patch. The behavior is changed in correspondence with results 
of Python-ideas discussion, extended tests, fixed several bugs.

--
keywords: +patch
stage: commit review - patch review
Added file: http://bugs.python.org/file35942/ospath_commonpath.patch

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



[issue11344] Add os.path.splitpath(path) function

2014-07-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patch. Added private general implementation in genericpath and 
specialized implementations are now tested to return the same result as general 
implementation.

--
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file35943/ospath_splitpath_3.patch

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



[issue21914] Create unit tests for Turtle guionly

2014-07-13 Thread Jessica McKellar

Changes by Jessica McKellar jesst...@mit.edu:


--
keywords: +needs review
stage:  - patch review

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



[issue21916] Create unit tests for turtle textonly

2014-07-13 Thread Jessica McKellar

Changes by Jessica McKellar jesst...@mit.edu:


--
keywords: +needs review
stage:  - patch review

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



[issue21951] tcl test change crashes AIX

2014-07-13 Thread David Edelsohn

David Edelsohn added the comment:

#5  0x1019bb90 in PyCFunction_Call (func=0x30533b5c, arg=0x305d8ab4, kw=0x0)
at Objects/methodobject.c:94
#6  0x1012534c in call_function (pp_stack=0x2ff16144, oparg=2)
at Python/ceval.c:4269

94  CHECK_RESULT(res);

(gdb) print res
$9 = (PyObject *) 0x0
(gdb) print meth
$10 = (PyCFunction) @0x20380888: 0xd8dd57dc Tkapp_Call
(gdb) print self
$11 = (PyObject *) 0x305d44d8

--

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



[issue11344] Add os.path.splitpath(path) function

2014-07-13 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



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

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

I believe the patch on #1576120 is related to this but it was never reviewed.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue21951] tcl test change crashes AIX

2014-07-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

May be this patch will help.

--
keywords: +patch
stage:  - patch review
Added file: http://bugs.python.org/file35944/tkinter_nomemory.patch

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



[issue15266] Perform the same checks as PyPI for Description field

2014-07-13 Thread Wichert Akkerman

Wichert Akkerman added the comment:

Éric is not quite correct: I currently have a package where python setup.py 
check does not show any error, but PyPI still refuses to format my long 
description. Likewise python setup.py --long-description | rst2html-2.7.py  
/dev/null also does not reveal any errors or warnings, so I am at a completely 
loss as to why PyPI refuses to format my documentation.

--
nosy: +wichert

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



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

2014-07-13 Thread Chris Rebert

Chris Rebert added the comment:

Here's a draft patch against the default branch that updates the json module's 
docs accordingly.

Note that under Implementation Limitations, the statement This module does 
not impose any such limits beyond those of the relevant Python datatypes 
themselves or the Python interpreter itself. is just a guess; I need someone 
who's familiar with the implementation to verify/correct this.

--
keywords: +patch
Added file: http://bugs.python.org/file35945/json-rfc-7159_1.patch

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



[issue15947] Assigning new values to instance of pointer types does not check validity

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Facundo please accept our apologies for the delay in getting back to you.

--
nosy: +BreamoreBoy, amaury.forgeotdarc, belopolsky, meador.inge
versions: +Python 3.4, Python 3.5 -Python 3.2

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



[issue15388] SAX parse (ExpatParser) leaks file handle when given filename input

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Matt I'm sorry that we haven't got back to you on this.

--
nosy: +BreamoreBoy, christian.heimes

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



[issue16178] atexit._run_exitfuncs should be a public API

2014-07-13 Thread Mark Lawrence

Mark Lawrence added the comment:

@Gregory do you intend to follow up on this?

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

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



[issue18592] Idle: test SearchDialogBase.py

2014-07-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b6c5719e0f4e by Terry Jan Reedy in branch '2.7':
Issue #18592: Method return signature changes made to SearchDialogBase for
http://hg.python.org/cpython/rev/b6c5719e0f4e

New changeset 407110796b16 by Terry Jan Reedy in branch '3.4':
Issue #18592: Method return signature changes made to SearchDialogBase for
http://hg.python.org/cpython/rev/407110796b16

--

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



[issue10289] Document magic methods called by built-in functions

2014-07-13 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


--
nosy: +cvrebert

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



[issue21951] tcl test change crashes AIX

2014-07-13 Thread David Edelsohn

David Edelsohn added the comment:

No difference with the patch. The problem is not a a malloc() failure.

--

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



[issue21777] Separate out documentation of binary sequence methods

2014-07-13 Thread Nick Coghlan

Nick Coghlan added the comment:

v2 patch converts the second category of functions. This conversion highlighted 
the lack of good examples in the str.split() docs, as well as some over and 
underspecification in the behaviour of the centering and justification methods 
(guarantees about object identity that don't hold for bytearray, failure to 
note that the default fill character is specifically an ASCII space - Unicode 
has more than one space type), so I also fixed those.

Added Guido to the nosy list - Guido, if you could cast your eye over this and 
at least give a +1 to the general approach, that would be great, otherwise I'll 
just go ahead and merge it some time after I finish converting the final 
category (which I expect will be no later than the PyCon AU sprints in early 
August, and potentially sooner)

--
nosy: +gvanrossum
Added file: 
http://bugs.python.org/file35946/separate_binary_sequence_docs_v2.diff

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



[issue21777] Separate out documentation of binary sequence methods

2014-07-13 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Why are you removing guarantees like these from the str docs:

The original string is returned if *width* is less than or equal to 
``len(s)``.

?

This doesn't seem to have anything to do with documenting bytes and bytearrays.

--
nosy: +lemburg

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



[issue16178] atexit._run_exitfuncs should be a public API

2014-07-13 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I don't currently have a need for this so, no.

--

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



[issue16623] argparse help formatter does not honor non-breaking space

2014-07-13 Thread paul j3

paul j3 added the comment:

The issue here is how `textwrap` handles the non-breaking space.  That's being 
address here:

http://bugs.python.org/issue20491 textwrap: Non-breaking space not honored

Temporarily an `argparse` user can get around it with 
`formatter_class=argparse.RawTextHelpFormatter`.  That suppresses all automatic 
wrapping, so it's not perfect.

--

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



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

2014-07-13 Thread Elizabeth Myers

Elizabeth Myers added the comment:

The backtrace of the crash, if it helps

--
Added file: http://bugs.python.org/file35948/trace.txt

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



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

2014-07-13 Thread Elizabeth Myers

New submission from Elizabeth Myers:

Pickling, unpickling, then using an sqlite3.Row object results in a segfault on 
at least Python 3.3.5, 3.4.0, and 3.4.1. I have attached a test case and a 
backtrace below.

I know you're not supposed to pickle sqlite3.Row objects, as the given test 
case below results in an exception to the effect that sqlite3.Row objects 
cannot be pickled in Python 2.7. I don't think a segfault is the desired 
behaviour, however...

--
components: Library (Lib)
files: testcase.py
messages: 222982
nosy: Elizacat
priority: normal
severity: normal
status: open
title: Using pickled/unpickled sqlite3.Row results in segfault rather than 
exception
type: crash
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file35947/testcase.py

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



[issue21974] Typo in Set in PEP 289

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

To modern eyes, that might look like a typo, but it is correct.  It refers to 
the Set() class in the sets.py module, the pure python implementation of sets 
which pre-dates the c-implementation of the set() built-in type.

--
nosy: +rhettinger
resolution:  - not a bug
status: open - closed

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



[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

There also used to be a fast path for binary subscriptions with integer 
indexes.  I would like to see that performance regression fixed if it can be 
done cleanly.

--
nosy: +rhettinger

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



[issue10395] new os.path function to extract common prefix based on path components

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This patch looks reasonable except for the doc change to 
os.path.commonprefix().   Remember, that function IS working as documented and 
that our policy is to document in an affirmative manner (here is what the 
function does and how to use it versus being preachy about broken-by-design 
etc.)

--
nosy: +rhettinger

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



[issue16178] atexit._run_exitfuncs should be a public API

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Closed due to lack on interest.

--
nosy: +rhettinger
resolution:  - out of date
status: open - closed

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



[issue21922] PyLong: use GMP

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I agree with all of Mark's objections.  Unless there is a compelling win, 
Python is better-off without the maintenance, portability, and licensing issues.

I have vague memories of this having been discussed a long time ago and it is 
unlikely that there have been any changes to the reasons for not doing it.

--

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



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

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 I believe the problem lies with the way that Windows implements 
 the 'exec' functions.

Yes, that is that cause of the observed behavior.  See the first note in the 
remarks section on the relevant MSDN entry at 
http://msdn.microsoft.com/en-us/library/431x4c1w.aspx :


Spaces embedded in strings may cause unexpected behavior; for example, passing 
_exec the string hi there will result in the new process getting two 
arguments, hi and there. If the intent was to have the new process open a 
file named hi there, the process would fail. You can avoid this by quoting 
the string: \hi there\.


The 'exec' functions are more low level and more arcane than most people would 
like.  Python exposes that functionality with all its beauty and all its warts. 
 David Murray is right in saying that you likely need one of the higher level 
modules such as subprocess with shell=True.

I looked through the code in Modules/posixmodule.c and didn't any code on our 
part that exacerbates the behavior.  I recommend closing this as just one of 
the facts-of-life when dealing with low level functionality.

--
nosy: +rhettinger

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



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

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 I believe the problem lies with the way that Windows implements 
 the 'exec' functions.

Yes, that is that cause of the observed behavior.  See the first note in the 
remarks section on the relevant MSDN entry at 
http://msdn.microsoft.com/en-us/library/431x4c1w.aspx :


Spaces embedded in strings may cause unexpected behavior; for example, passing 
_exec the string hi there will result in the new process getting two 
arguments, hi and there. If the intent was to have the new process open a 
file named hi there, the process would fail. You can avoid this by quoting 
the string: \hi there\.


The 'exec' functions are more low level and more arcane than most people would 
like.  Python exposes that functionality with all its beauty and all its warts. 
 David Murray is right in saying that you likely need one of the higher level 
modules such as subprocess with shell=True.

I looked through the code in Modules/posixmodule.c and didn't any code on our 
part that exacerbates the behavior.

Knowing that the cause is the underlying function still leaves the question of 
whether to apply a patch the mitigates the problem (possibly breaking some code 
that relies on the existing behavior) or whether to live with the facts-of-life 
that accompany low level O/S functions.

--

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



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

2014-07-13 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
Removed message: http://bugs.python.org/msg222989

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



[issue21777] Separate out documentation of binary sequence methods

2014-07-13 Thread Nick Coghlan

Nick Coghlan added the comment:

On 13 Jul 2014 18:39, Marc-Andre Lemburg rep...@bugs.python.org wrote:


 Marc-Andre Lemburg added the comment:

 Why are you removing guarantees like these from the str docs:

 The original string is returned if *width* is less than or equal to
``len(s)``.

Because it's untrue for bytearray, and possible object reuse is a general
characteristic of immutability for str and bytes. If another implementation
makes a copy for some reason, it would still be considered Python.

Since the sentence thus conveys no useful information, I removed it from
both the text and binary variants rather than coming up with appropriate
wording to indicate that the behaviour of returning a new reference to the
existing object when no content changes are needed doesn't apply to the
mutable bytearray.


 ?

 This doesn't seem to have anything to do with documenting bytes and
bytearrays.

 --
 nosy: +lemburg

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue21777
 ___

--

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



[issue21777] Separate out documentation of binary sequence methods

2014-07-13 Thread Guido van Rossum

Guido van Rossum added the comment:

On Sun, Jul 13, 2014 at 7:00 PM, Nick Coghlan rep...@bugs.python.org
wrote:


 Nick Coghlan added the comment:

 On 13 Jul 2014 18:39, Marc-Andre Lemburg rep...@bugs.python.org wrote:
 
 
  Marc-Andre Lemburg added the comment:
 
  Why are you removing guarantees like these from the str docs:
 
  The original string is returned if *width* is less than or equal to
 ``len(s)``.

 Because it's untrue for bytearray, and possible object reuse is a general
 characteristic of immutability for str and bytes. If another implementation
 makes a copy for some reason, it would still be considered Python.

 Since the sentence thus conveys no useful information, I removed it from
 both the text and binary variants rather than coming up with appropriate
 wording to indicate that the behaviour of returning a new reference to the
 existing object when no content changes are needed doesn't apply to the
 mutable bytearray.


That feels like overreacting. It *is* useful to know about this guarantee,
and it would be better if we could somehow require it rather than claim it
doesn't matter. And before you counter with examples of other CPython
behaviors that *shouldn't* be guaranteed across implementations, I am
talking about this specific case, and every case needs to be examined on
its merits separately. It is possible that in the end we'll decide this
particular guarantee is not worth having -- but I think that should not be
decided by a refactoring of the docs.

--

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



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

2014-07-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I no longer have a Windows box to test this but any proposed patch needs to 
make sure it doesn't break code that is already manually escaping the inputs.

--
nosy: +loewis, steve.dower, tim.golden, tim.peters

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