[issue22093] Compiling python on OS X gives warning about compact unwind

2014-07-28 Thread Ned Deily

Ned Deily added the comment:

That warning has been around for some time.  The question is: is it something 
to be concerned about?  I don't know of any ctypes test failures on OS X.  
There have been various discussions of the warning in other (non-Python) 
contexts, for example, 
https://sourceware.org/ml/libffi-discuss/2011/msg00109.html.

--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge, ned.deily, ronaldoussoren

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



[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Raymond Hettinger

Raymond Hettinger added the comment:

It's not  a bug.  Guido designed the Set ABC to use operators instead of the 
named methods.  The += operator for the __iadd__() method that provides much of 
the same functionality.

Mutable mapping has an update() method because it is an essential part of the 
mapping API and because there is no operator equivalent as there is for the set 
API.

--
assignee:  - rhettinger
type:  - enhancement
versions: +Python 3.5 -Python 3.3, Python 3.4

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ned Deily

Ned Deily added the comment:

turtle_demo_v3.patch looks good to me.  I have satisfied myself that the 
AppleScript works OK with a non-English system.  And, while it is a bit of a 
kludge for OS X and assuming the rest of the change works OK on Windows and 
Linux, I would recommend to Terry that we proceed with this approach for 3.5, 
3.4 if someone feels strongly about it, and skip 2.7.  If a better way to do it 
turns up, we can add that later.  Time to move on to other things.

--
stage: needs patch - commit review

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



[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-28 Thread Akira Li

Akira Li added the comment:

 Akira, your patch does this:

 -self._writetranslate = newline != ''
 -self._writenl = newline or os.linesep
 +self._writetranslate = newline in (None, '\r', '\r\n')
 +self._writenl = newline if newline is not None else os.linesep

 Any reason you made the second change? Why change the value assigned
 to _writenl for newline='\n' when you don't want to actually change
 the behavior for those cases? Just so you can double-check at write
 time that _writetranslate is never set unless _writenl is '\r',
 \r\n', or os.linesep?

If newline='\n' then writenl is '\n' with and without the patch.
If newline='\n' then write('\n\r') writes '\n\r' with and without the
patch.

If newline='\n' then writetranslate=False (with the patch). It does not
change the result for newline='\n' as it is documented now [1]:

  [newline] can be None, '', '\n', '\r', and '\r\n'.
  ...
  If newline is any of the other legal values [namely '\r', '\n',
  '\r\n'], any '\n' characters written are translated to the given
  string.

[...] are added by me for clarity.

[1] https://docs.python.org/3.4/library/io.html#io.TextIOWrapper

writetranslate=False so that if newline='\0' then write('\0\n') would
write '\0\n' i.e., embed '\n' are not corrupted if newline='\0'. That is
why it is the no translation patch:

+When writing output to the stream:
+
+- if newline is None, any '\n' characters written are translated to
+  the system default line separator, os.linesep
+- if newline is '\r' or '\r\n', any '\n' characters written are
+  translated to the given string
+- no translation takes place for any other newline value [any string].

--

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



[issue22041] http POST request with python 3.3 through web proxy

2014-07-28 Thread Alejandro MJ

Alejandro MJ added the comment:

Thanks a lot for your help, as you suggested the problem was because of the 
method set_tunnel. I've tested the code that you have posted and now works 
perfectly.

I'll keep in mind this for future works. We can conclude that it's not really a 
bug of Python, so that this problem is related to proxy configuration. However, 
I'll take in count which version of Python to use if I have to do a similar job.

Regards,
Alejandro

--
resolution:  - not a bug

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



[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

On X11 Button-4 and Button-5 events are generated on mouse wheel roll. So 
you should add

widget.bind('Control-Button-4', self._increaseFont)
widget.bind('Control-Button-5', self._decreaseFont)

But mouse wheel events still are sent to widget and text is scrolled together 
with font size changing.

--

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Larry Hastings

Larry Hastings added the comment:

Here's an updated patch.  I cleaned it up a little.  I think it's about ready 
to go in.

Zachary, iirc you're a Windows guy and have helped with ensuring patches apply 
cleanly to Windows in the past.  Can you give this a try on Windows?

--
Added file: http://bugs.python.org/file36136/larry.clinicize.posixmodule.4.diff

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



[issue22094] test_ossaudiodev fails unnecessarily

2014-07-28 Thread Akira Li

New submission from Akira Li:

$ ./python -mtest -uaudio test_ossaudiodev
[1/1] test_ossaudiodev
test test_ossaudiodev failed -- Traceback (most recent call last):
  File ./Lib/test/test_ossaudiodev.py, line 148, in test_playback
self.play_sound_file(*sound_info)
  File ./Lib/test/test_ossaudiodev.py, line 89, in play_sound_file
(elapsed_time, expected_time))
AssertionError: False is not true : elapsed time (0.0590214729309082)  10% off 
of expected time (3.5127309036445333)

1 test failed:
test_ossaudiodev

The failure is caused by dsp.write(data) that doesn't write all data
on my machine.  If it is replaced with dsp.writeall(data) then the test
passes.

The docs [1] say that dsp.write() should write all data by default:

  oss_audio_device.write(data)
  Write the Python string data to the audio device and return the
  number of bytes written. If the audio device is in blocking mode
  (the default), the entire string is always written

[1] https://docs.python.org/3.4/library/ossaudiodev.html


The comments in Modules/ossaudiodev.c suggest that dsp.write(data) should
write *all* data unless dsp.nonblock() is called:

/* Open with O_NONBLOCK to avoid hanging on devices that only allow
   one open at a time.  This does *not* affect later I/O; OSS
   provides a special ioctl() for non-blocking read/write, which is
   exposed via oss_nonblock() below. */
fd = _Py_open(devicename, imode|O_NONBLOCK);
...
/* And (try to) put it back in blocking mode so we get the
   expected write() semantics. */
if (fcntl(fd, F_SETFL, 0) == -1) {
close(fd);
PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename);
return NULL;
}

--
components: Tests
messages: 224159
nosy: akira
priority: normal
severity: normal
status: open
title: test_ossaudiodev fails unnecessarily
type: behavior
versions: Python 3.4

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



[issue22094] oss_audio_device.write(data) produces short writes

2014-07-28 Thread Akira Li

Changes by Akira Li 4kir4...@gmail.com:


--
title: test_ossaudiodev fails unnecessarily - oss_audio_device.write(data) 
produces short writes

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



[issue22094] oss_audio_device.write(data) produces short writes

2014-07-28 Thread Akira Li

Akira Li added the comment:

From Modules/ossaudiodev.c:

/* NB. writeall() is only useful in non-blocking mode: according to
   Guenter Geiger gei...@xdv.org on the linux-audio-dev list
   (http://eca.cx/lad/2002/11/0380.html), OSS guarantees that
   write() in blocking mode consumes the whole buffer.  In blocking
   mode, the behaviour of write() and writeall() from Python is
   indistinguishable. */

--

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ronald Oussoren

Ronald Oussoren added the comment:

I don't have a better solution for this, although I'd slightly prefer to add a 
hack to the turtledemo main function to force itself to the foreground on 
startup. That way the hack also works when the user starts the script in a 
Terminal window.

--

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



[issue22094] oss_audio_device.write(data) produces short writes

2014-07-28 Thread Akira Li

Changes by Akira Li 4kir4...@gmail.com:


--
components: +Library (Lib) -Tests

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



[issue22054] Add os.get_blocking() and os.set_blocking() functions

2014-07-28 Thread Akira Li

Akira Li added the comment:

Maybe is_something() is a better name than get_something()
if something is a boolean?

--
nosy: +akira

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



[issue22085] Update deprecated Tcl commands in Tkinter

2014-07-28 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Dropping support for 8.3 sounds fine with me (for Python 3.5 only, of course). 
Otherwise, the patch looks also fine, so please apply.

--
nosy: +loewis

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



[issue22003] BytesIO copy-on-write

2014-07-28 Thread David Wilson

David Wilson added the comment:

Newest patch incorporates Antoine's review comments. The final benchmark 
results are below. Just curious, what causes e.g. telco to differ up to 7% 
between runs? That's really huge

Report on Linux k2 3.14-1-amd64 #1 SMP Debian 3.14.9-1 (2014-06-30) x86_64
Total CPU cores: 4

### call_method_slots ###
Min: 0.329869 - 0.340487: 1.03x slower
Avg: 0.330512 - 0.341786: 1.03x slower
Significant (t=-216.69)
Stddev: 0.00067 - 0.00060: 1.x smaller

### call_method_unknown ###
Min: 0.351167 - 0.343961: 1.02x faster
Avg: 0.351731 - 0.344580: 1.02x faster
Significant (t=238.89)
Stddev: 0.00033 - 0.00040: 1.2271x larger

### call_simple ###
Min: 0.257487 - 0.277366: 1.08x slower
Avg: 0.257942 - 0.277809: 1.08x slower
Significant (t=-845.64)
Stddev: 0.00029 - 0.00029: 1.0126x smaller

### etree_generate ###
Min: 0.377985 - 0.365952: 1.03x faster
Avg: 0.381797 - 0.369452: 1.03x faster
Significant (t=31.15)
Stddev: 0.00314 - 0.00241: 1.3017x smaller

### etree_iterparse ###
Min: 0.545668 - 0.565437: 1.04x slower
Avg: 0.554188 - 0.576807: 1.04x slower
Significant (t=-17.00)
Stddev: 0.00925 - 0.00956: 1.0340x larger

### etree_process ###
Min: 0.294158 - 0.286617: 1.03x faster
Avg: 0.296354 - 0.288877: 1.03x faster
Significant (t=36.22)
Stddev: 0.00149 - 0.00143: 1.0435x smaller

### fastpickle ###
Min: 0.458961 - 0.475828: 1.04x slower
Avg: 0.460226 - 0.481228: 1.05x slower
Significant (t=-109.38)
Stddev: 0.00082 - 0.00173: 2.1051x larger

### nqueens ###
Min: 0.305883 - 0.295858: 1.03x faster
Avg: 0.308085 - 0.297755: 1.03x faster
Significant (t=90.22)
Stddev: 0.00077 - 0.00085: 1.0942x larger

### silent_logging ###
Min: 0.074152 - 0.075818: 1.02x slower
Avg: 0.074345 - 0.076005: 1.02x slower
Significant (t=-96.29)
Stddev: 0.00013 - 0.00012: 1.0975x smaller

### spectral_norm ###
Min: 0.355738 - 0.364419: 1.02x slower
Avg: 0.356691 - 0.365764: 1.03x slower
Significant (t=-126.23)
Stddev: 0.00054 - 0.00047: 1.1533x smaller

### telco ###
Min: 0.012152 - 0.013038: 1.07x slower
Avg: 0.012264 - 0.013157: 1.07x slower
Significant (t=-83.98)
Stddev: 0.8 - 0.7: 1.0653x smaller

The following not significant results are hidden, use -v to show them:
2to3, call_method, chaos, django_v2, etree_parse, fannkuch, fastunpickle, 
float, formatted_logging, go, hexiom2, iterative_count, json_dump, 
json_dump_v2, json_load, mako, mako_v2, meteor_contest, nbody, normal_startup, 
pathlib, pickle_dict, pickle_list, pidigits, raytrace, regex_compile, 
regex_effbot, regex_v8, richards, simple_logging, startup_nosite, 
threaded_count, tornado_http, unpack_sequence, unpickle_list.

--
Added file: http://bugs.python.org/file36137/cow6.patch

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



[issue22054] Add os.get_blocking() and os.set_blocking() functions

2014-07-28 Thread STINNER Victor

STINNER Victor added the comment:

 Maybe is_something() is a better name than get_something()
 if something is a boolean?

os and socket modules already use getxxx() / setxxx() names:

- os.get_inheritable() / os.set_inheritable()
- os.getuid() / os.setuid()
- os.getgroups() / os.setgroups()
- os.getxattr() os.setxattr()
- socket.gettimeout() / socket.settimeout()
- socket.get_inheritable() / socket.set_inheritable()
- etc.

There is only one is function: os.isatty(), but it does not have a 
os.settty method.

--

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



[issue1602] windows console doesn't print or input Unicode

2014-07-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy:  -haypo

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



[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2014-07-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +benhoyt

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-07-28 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Anything else I need to do?

--

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-07-28 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee: larry - brett.cannon

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



[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2014-07-28 Thread Akira Li

Akira Li added the comment:

I've updated os.walk() documentation to mention that *dirnames* list
includes symlinks to directories.

To imitate the other two cases:

- treat the symlinks as files:

for dirpath, dirnames, files in os.walk(top):
dirs = []
for name in dirnames:
(files if islink(join(dirpath, name)) else dirs).append(name)
dirnames = dirs

- don't include in either of the lists:

for dirpath, dirnames, files in os.walk(top):
dirnames[:] = [name for name in dirnames
   if not islink(join(dirpath, name))]

where islink = os.path.islink and join = os.path.join.

I've uploaded the documentation patch. Please, review.

--
nosy: +akira
Added file: http://bugs.python.org/file36138/docs-walk-issue12970.patch

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



[issue22003] BytesIO copy-on-write

2014-07-28 Thread Stefan Krah

Stefan Krah added the comment:

 Just curious, what causes e.g. telco to differ up to 7% between runs? That's 
 really huge.

telco.py always varies a lot between runs (up to 10%), even in the
big version telco.py full:

http://bytereef.org/mpdecimal/quickstart.html#telco-benchmark


Using the average of 10 runs, I can't really see a slowdown.

--

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



[issue22003] BytesIO copy-on-write

2014-07-28 Thread Stefan Krah

Stefan Krah added the comment:

So I wonder why the benchmark suite says that the telco slowdown is 
significant. :)

--

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



[issue22054] Add os.get_blocking() and os.set_blocking() functions

2014-07-28 Thread Akira Li

Akira Li added the comment:

 os and socket modules already use getxxx() / setxxx() names:

 - os.get_inheritable() / os.set_inheritable()
 - os.getuid() / os.setuid()
 - os.getgroups() / os.setgroups()
 - os.getxattr() os.setxattr()
 - socket.gettimeout() / socket.settimeout()
 - socket.get_inheritable() / socket.set_inheritable()
 - etc.

egid, euid, gid, groups, pgid, pgrp, priority, resgid, sid, uid, xatrr,
hostname, timeout, sockopt are not boolean. Though
get_inheritable() spoils the pot.

Compare:

  if os.get_blocking(fd): # is it a bug? Does it return some mode bits?
 # Do I need stat.IS_BLK(os.get_blocking(fd)) here instead?

And:

  if os.is_blocking(fd):
 # it is clear that fd is blocking

There could be an argument that get_inheritable should be renamed to
is_inheritable instead.

--

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



[issue8232] webbrowser.open incomplete on Windows

2014-07-28 Thread Brian Curtin

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


--
nosy:  -brian.curtin

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



[issue22054] Add os.get_blocking() and os.set_blocking() functions

2014-07-28 Thread Charles-François Natali

Charles-François Natali added the comment:

I agree with Akira, although it's probably too late now to rename.

--

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Zachary Ware

Zachary Ware added the comment:

MSVC is not happy, here's some build output:

P:\ath\to\cpython\PCbuild\pcbuild.sln (Build target) (1) -
P:\ath\to\cpython\PCbuild\python.vcxproj (default target) (2) -
P:\ath\to\cpython\PCbuild\pythoncore.vcxproj (default target) (3) -
(ClCompile target) -
  ..\Modules\posixmodule.c(2886): warning C4047: 'initializing' : 'int' differs 
in levels of indirection from 'void *' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(2896): warning C4047: 'return' : 'int' differs in 
levels of indirection from 'void *' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(2900): warning C4047: 'return' : 'int' differs in 
levels of indirection from 'void *' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4865): warning C4047: '=' : 'int' differs in levels 
of indirection from 'Py_UNICODE *' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4866): warning C4047: '==' : 'int' differs in levels 
of indirection from 'void *' [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4877): warning C4047: 'function' : 'LPCWSTR' differs 
in levels of indirection from 'int' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4877): warning C4024: 'CreateFileW' : different 
types for formal and actual parameter 1 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(5368): warning C4047: 'function' : 'path_t *' 
differs in levels of indirection from 'path_t **' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(5368): warning C4024: 'path_error2' : different 
types for formal and actual parameter 1 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(5368): warning C4047: 'function' : 'path_t *' 
differs in levels of indirection from 'path_t **' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(5368): warning C4024: 'path_error2' : different 
types for formal and actual parameter 2 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(7010): warning C4031: second formal parameter list 
longer than the first list [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(9894): warning C4013: 'waitpid' undefined; assuming 
extern returning int [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(10428): warning C4047: 'function' : 'path_t *' 
differs in levels of indirection from 'path_t **' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(10428): warning C4024: 'path_error2' : different 
types for formal and actual parameter 1 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(10428): warning C4047: 'function' : 'path_t *' 
differs in levels of indirection from 'path_t **' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(10428): warning C4024: 'path_error2' : different 
types for formal and actual parameter 2 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(16433): warning C4047: 'return' : 'int' differs in 
levels of indirection from 'void *' 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]


P:\ath\to\cpython\PCbuild\pcbuild.sln (Build target) (1) -
P:\ath\to\cpython\PCbuild\python.vcxproj (default target) (2) -
P:\ath\to\cpython\PCbuild\pythoncore.vcxproj (default target) (3) -
(ClCompile target) -
  ..\Modules\posixmodule.c(3324): error C2231: '.wide' : left operand points to 
'struct', use '-' [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4863): error C2082: redefinition of formal parameter 
'path' [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4865): error C2065: 'path_wchar' : undeclared 
identifier [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4866): error C2065: 'path_wchar' : undeclared 
identifier [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(4877): error C2065: 'path_wchar' : undeclared 
identifier [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(7004): error C2370: 'os_spawnv__doc__' : 
redefinition; different storage class 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(7014): error C2084: function 'PyObject 
*os_spawnv(PyModuleDef *,PyObject *)' already has a body 
[P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(7037): error C2084: function 'PyObject 
*os_spawnv_impl(PyModuleDef *,int,PyObject *,PyObject *,PyObject *)' already 
has a body [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(9019): error C2082: redefinition of formal parameter 
'pid' [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(10936): error C2231: '.wide' : left operand points 
to 'struct', use '-' [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]
  ..\Modules\posixmodule.c(13997): error C2085: 

[issue21308] PEP 466: backport ssl changes

2014-07-28 Thread Alex Gaynor

Alex Gaynor added the comment:

Investigations:

The test_poplib failures are caused by the backporting of 
http://bugs.python.org/issue20951, does anyone have opinions on whether we 
should backport Antoine's fix for poplib, or revert that particular change?

I'm not sure how to fix that compilation warning, any suggestions?

I've uploaded a new patch which fixes the test_algorithm's failure with 
non-system OS X.

--
Added file: http://bugs.python.org/file36139/ssl-backport.diff

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-07-28 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 Anything else I need to do?

Nothing else.  I've got it from here :-)

--

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



[issue22095] Use of set_tunnel with default port results in incorrect post value in host header

2014-07-28 Thread Demian Brecht

New submission from Demian Brecht:

Creating this bug for clarity, but was encountered while investigating 22041 
(now set as not a bug).

When using set_tunnel with default port, the port value in the host header is 
set to None:

send: b'POST [PATH] HTTP/1.1\r\nHost: [HOST]:None\r\nAccept-Encoding: 
identity\r\nContent-Length: 41\r\nAccept: text/plain\r\nContent-type: 
application/x-www-form-urlencoded\r\n\r\n[FORM_DATA]'

This issue seems to have been introduced in 3.4 when _tunnel_host and 
_tunnel_port were introduced to decouple the destination host and port from the 
proxy host and port.

--
components: Library (Lib)
messages: 224175
nosy: demian.brecht
priority: normal
severity: normal
status: open
title: Use of set_tunnel with default port results in incorrect post value in 
host header
type: behavior
versions: Python 3.4, Python 3.5

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



[issue22095] Use of set_tunnel with default port results in incorrect post value in host header

2014-07-28 Thread Demian Brecht

Changes by Demian Brecht demianbre...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file36140/issue22095.patch

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Lita Cho

Lita Cho added the comment:

Thanks for the input Ronald! How would I go about forcing the turtledemo to be 
in the foreground? Do I just need to call 'fg' on the subprocess? I've been 
Googling and couldn't find anything obvious.

--

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



[issue19980] Improve help('non-topic') response

2014-07-28 Thread Mark Lawrence

Mark Lawrence added the comment:

I suppose that technically this can only go into 3.5, but is there any real 
reason that this couldn't be backported?

--
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file36141/Issue19980.diff

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



[issue21308] PEP 466: backport ssl changes

2014-07-28 Thread Alex Gaynor

Alex Gaynor added the comment:

Latest patch makes the needed change to Makefile.pre.in

--
Added file: http://bugs.python.org/file36142/ssl-backport.diff

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



[issue22041] http POST request with python 3.3 through web proxy

2014-07-28 Thread Demian Brecht

Demian Brecht added the comment:

No problem, happy you were able to get things sorted. Feel free to close this 
issue as I've opened #22095 to address the host port header issue.

--

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



[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-07-28 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
versions: +Python 3.5
Added file: http://bugs.python.org/file36143/issue20586.diff

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



[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-07-28 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


Removed file: http://bugs.python.org/file34025/clinic_sig_no_docstring.diff

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



[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-07-28 Thread Zachary Ware

Zachary Ware added the comment:

Certainly, Martin.  I'm in the process of getting it updated and self-reviewing 
again.  This patch will require #20586 and possibly another new Clinic feature 
(allowing output to multiple destinations; I have a change for that feature on 
my issue20172 sandbox branch, but don't remember why and never got an issue 
made for it) before commit.

I'll try to have a fresh patch up here within a week or so.

--
dependencies: +Argument Clinic: functions with valid sig but no docstring have 
no __text_signature__

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ned Deily

Ned Deily added the comment:

Ronald:
 I'd slightly prefer to add a hack to the turtledemo main function to force
 itself to the foreground on startup. That way the hack also works when the
 user starts the script in a Terminal window.

That's exactly what the proposed patch does.  The AppleScript activate causes 
turtledemo, however started, to move to the foreground.

--

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



[issue22041] http POST request with python 3.3 through web proxy

2014-07-28 Thread Ned Deily

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


--
stage:  - resolved
status: open - closed

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



[issue17763] test_pydoc fails with the installed testsuite

2014-07-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Can our testing gurus shed any light on this?

--
nosy: +BreamoreBoy, ezio.melotti, michael.foord, pitrou
versions: +Python 3.5 -Python 3.3

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Larry Hastings

Larry Hastings added the comment:

thanks!  I'm flying from London to Brisbane (via Singapore), gonna take about a 
day.  Now I have something to do on the flight ;-)

(that and nullable ints)

--

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



[issue22054] Add os.get_blocking() and os.set_blocking() functions

2014-07-28 Thread STINNER Victor

STINNER Victor added the comment:

Guido van Rossum told me that he's ok for get: I'd go with get, since that 
seems the tradition in the os module.

--

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



[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-07-28 Thread STINNER Victor

STINNER Victor added the comment:

Ok, I will write a a patch to raise an exception in debug mode if the socket is 
in blocking mode.

--

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



[issue10572] Move test sub-packages to Lib/test

2014-07-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we get this into 3.5 for the reasons given in msg179596 ?

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

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



[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-28 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
components: Demos and Tools
nosy: larry, zach.ware
priority: normal
severity: normal
status: open
title: Argument Clinic: add ability to specify an existing impl function
type: enhancement
versions: Python 3.4, Python 3.5

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



[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2014-07-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Is this ever likely to be implemented or is it more likely to be rejected owing 
to the reasons given in msg75587 ?

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

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



[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-28 Thread Zachary Ware

New submission from Zachary Ware:

It would be nice to be able to specify an existing function as the _impl 
function, for cases like winreg.OpenKey and OpenKeyEx which are the same 
function by different names, or _winapi.GetCurrentProcess, whose impl function 
is return GetCurrentProcess().

This is pretty minor, but would allow for some shorter and cleaner code.  
Unfortunately, I don't have any great ideas for syntax for this, so it may be 
rejected just on that basis.

--
priority: normal - low

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



[issue5833] readline update

2014-07-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Looking at msg128306 and msg128319 I believe this can be closed.

--
nosy: +BreamoreBoy

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



[issue11212] Python memory limit on AIX

2014-07-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@David (Edelsohn) what is your take on this?

--
nosy: +BreamoreBoy, David.Edelsohn
versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2

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



[issue22097] Linked list API for ordereddict

2014-07-28 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Right now Python doesn't have an ordered container which allows O(1) insertion 
at any place. It would be nice to have such an API on ordered dicts (e.g. 
insert_after() / insert_before()).

--
messages: 224191
nosy: pitrou, rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Linked list API for ordereddict
type: enhancement
versions: Python 3.5

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



[issue22097] Linked list API for ordereddict

2014-07-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

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



[issue22097] Linked list API for ordereddict

2014-07-28 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue18174] Make regrtest with --huntrleaks check for fd leaks

2014-07-28 Thread Richard Oudkerk

Richard Oudkerk added the comment:

I can't remember why I did not use fstat() -- probably it did not occur to me.

--

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



[issue19217] Calling assertEquals for moderately long list takes too long

2014-07-28 Thread Puneeth Chaganti

Puneeth Chaganti added the comment:

Hi, 

The attached patch is an attempt to write tests for this issue, and get all the 
tests passing.  

Since a new threshold has been introduced, `maxDiff` doesn't always make a 
difference and this required changing the `testAssertSequenceEqualMaxDiff` 
test. Serhiy Storchaka suggestion makes sense, since we want to be showing the 
diff when it is smaller than the error message being shown, but I'm not sure 
what's the best way to do this.

--
nosy: +Puneeth.Chaganti
Added file: http://bugs.python.org/file36144/issue19217-1.diff

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



[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)

2014-07-28 Thread STINNER Victor

STINNER Victor added the comment:

I backported and adapted most Python 3 fixes related to the Windows binary mode 
for stdout/stderr used when Python is started with the -u command line option. 
See attached binary.patch.

My change to file.write() looks wrong because the function returns None and 
does not loop until all bytes are written.

By the way, string_write() doesn't check if fwrite(n) wrote less than n bytes 
or failed with an error.

See also the issue #21090 which improves error handling in the file object.

--
keywords: +patch
Added file: http://bugs.python.org/file36145/binary.patch

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



[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Florian Dold

New submission from Florian Dold:

Habimg __slots__ = [] on a class inheriting from ctypes.Structure prevents 
undefined fields from being set, as expected.

When inheriting from ctypes.BigEndianStructure, however, it is possible to set 
undefined fields.

See the attached file for small test case for the behavior.

--
components: ctypes
files: bug-ctypes-slots.py
messages: 224195
nosy: Florian.Dold
priority: normal
severity: normal
status: open
title: Behavior of Structure inconsistent with BigEndianStructure when using 
__slots__
versions: Python 3.4
Added file: http://bugs.python.org/file36146/bug-ctypes-slots.py

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



[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Florian Dold

Changes by Florian Dold florian.d...@gmail.com:


--
type:  - behavior

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



[issue19612] test_subprocess: sporadic failure of test_communicate_epipe() on Windows 8

2014-07-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 039ac3f01c4e by Victor Stinner in branch '2.7':
Issue #19612: subprocess.communicate() now also ignores EINVAL when using at
http://hg.python.org/cpython/rev/039ac3f01c4e

--

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



[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)

2014-07-28 Thread STINNER Victor

STINNER Victor added the comment:

While testing binary.patch, test_subprocess failed because of the issue #19612. 
I backported the fix:

changeset:   91905:039ac3f01c4e
branch:  2.7
parent:  91895:bffa0b8a16e8
user:Victor Stinner victor.stin...@gmail.com
date:Tue Jul 29 00:04:54 2014 +0200
files:   Lib/subprocess.py Misc/NEWS
description:
Issue #19612: subprocess.communicate() now also ignores EINVAL when using at
least two pipes.

--

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



[issue19612] test_subprocess: sporadic failure of test_communicate_epipe() on Windows 8

2014-07-28 Thread STINNER Victor

STINNER Victor added the comment:

I didnd't see the failure recently on Windows, so I close the issue.

I backported the fix on Python 2.7 for the issue #21946.

--
resolution:  - fixed
status: open - closed
versions: +Python 2.7

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



[issue21704] _multiprocessing module builds incorrectly when POSIX semaphores are disabled

2014-07-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f618f6739200 by Richard Oudkerk in branch '3.4':
Issue #21704: Fix build error for _multiprocessing when semaphores
http://hg.python.org/cpython/rev/f618f6739200

New changeset a9637b29954d by Richard Oudkerk in branch 'default':
Issue #21704: Merge.
http://hg.python.org/cpython/rev/a9637b29954d

--
nosy: +python-dev

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



[issue22097] Linked list API for ordereddict

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

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



[issue20766] reference leaks in pdb

2014-07-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

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



[issue20746] test_pdb fails in refleak mode

2014-07-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

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



[issue18174] Make regrtest with --huntrleaks check for fd leaks

2014-07-28 Thread STINNER Victor

STINNER Victor added the comment:

Modified patch to use os.fstat(), and try to use /proc/self/fd/ on Linux.

--
Added file: http://bugs.python.org/file36147/fdleak-2.patch

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



[issue18174] Make regrtest with --huntrleaks check for fd leaks

2014-07-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 379aad232000 by Victor Stinner in branch '3.4':
Issue #11453, #18174: Fix leak of file descriptor in test_asyncore
http://hg.python.org/cpython/rev/379aad232000

New changeset 0ced2d2325fb by Victor Stinner in branch 'default':
(Merge 3.4) Issue #11453, #18174: Fix leak of file descriptor in test_asyncore
http://hg.python.org/cpython/rev/0ced2d2325fb

--

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



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2014-07-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 379aad232000 by Victor Stinner in branch '3.4':
Issue #11453, #18174: Fix leak of file descriptor in test_asyncore
http://hg.python.org/cpython/rev/379aad232000

New changeset 0ced2d2325fb by Victor Stinner in branch 'default':
(Merge 3.4) Issue #11453, #18174: Fix leak of file descriptor in test_asyncore
http://hg.python.org/cpython/rev/0ced2d2325fb

--

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



[issue18174] Make regrtest with --huntrleaks check for fd leaks

2014-07-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 746339776f19 by Victor Stinner in branch '3.4':
Issue #18174: Fix leak of file descriptor in test_tempfile
http://hg.python.org/cpython/rev/746339776f19

New changeset 017d701116d5 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #18174: Fix leak of file descriptor in test_tempfile
http://hg.python.org/cpython/rev/017d701116d5

--

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



[issue22099] Two Save As Windows

2014-07-28 Thread Adam Kimbrough

New submission from Adam Kimbrough:

I am on a Mac running Mavericks 10.9.4. Whenever I press shift+command+s to 
save a file as a specific name, it opens two windows. But, if I Save As 
through the button in the menu bar, it only opens one window.

--
components: IDLE
messages: 224204
nosy: Adam.Kimbrough
priority: normal
severity: normal
status: open
title: Two Save As Windows
type: behavior
versions: Python 2.7

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



[issue22099] Two Save As Windows

2014-07-28 Thread Ned Deily

Ned Deily added the comment:

This is due to a bug in earlier versions of Cocoa Tk 8.5.x, originally 
documented in Issue11055.  Unfortunately, Apple is still shipping such a 
version in current versions of OS X.  One solution is to install a newer 
version of Tk 8.5, such as ActiveTcl 8.5.15 and use a version of Python that 
links with it, such as from the python.org OS X installers (currently 2.7.8).  
More details here:

https://www.python.org/download/mac/tcltk/

--
nosy: +ned.deily
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - OS X IDLE 3.2 Save As menu accelerator opens two Save windows

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree with skipping 2.7. The current patch is based on importing turtledemo, 
while on 2.7, turtleDemo.py is in Demo/turtle/ and cannot be imported. It could 
run with execfile, but the viewer will only run if /turtle is the current 
directory. On Windows, this would still be useless as the 2.7 installer does 
not install Demo or anything therein. When turtleDemo is installed, the 
location is system dependent. An extended version of the new checker extension, 
#21880, would allow users to configure 'run turtledemo' to work on a system 
that has it.

The patch works fine on Windows, including not blocking other actions with 
Idle. The only change I might make is
   cmd = [sys.executable, '-m', 'turtledemo']
which is more readable and does the same as the current version. But see below. 
(Lita, don't make a new patch for this or anything else in this message.)

The main remaining demo viewer fix is font re-sizing, #21933, which I expect we 
should finish within a week.

'Run turtledemo' should go on the Run menu, along with other 'run external 
program' menu items.  The Run menu is easily enabled in the Shell window by 
adding '(run, _Run),' to menu_specs before options (line 842). However, 
putting the entry where it would belong, after Run Module, means that the 
addition has to be delayed until after the ScriptBinding extension is loaded. 
That would be done most easily as part of loading the checker extension #21880. 
 The open_turtle_demo function would be moved and perhaps generalized.

The change to make turtledemo run properly in a subprocess on Mac appears to be 
a separate issue from adding it to Idle's menu. I presume that if 
turtledemo.__main__ is loaded into Idle, and run with F5, as I have been doing, 
there is the same problem (on a Mac). I would guess that the same would be true 
of any tkinter app run in a subprocess from Idle. How about non-gui apps that 
are not mac-aware? If any of these are true, the fix would be generally useful 
outside of turtledemo and would seem to belong somewhere in the tkinter 
package.  (Is the same true for some of maxosxSupport).

If the activate code is moved to macosxSupport.activate(), does the following 
work in EditorWindow.open_turtle_demo?
cmd = [sys.executable, '-c',
  'from idlelib.macosxSupport import activate as A; A()\n'
  'from turtledemo.__main__ import main; main()']
Does the activate code have to be called after, say, the tkinter import in 
turtledemo, or is anytime in the process ok?  While something like this is not 
needed to run turtledemo, which we can edit, it would be to run tkinter (or 
mac-unaware gui apps) that we cannot edit.

--

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



[issue22097] Linked list API for ordereddict

2014-07-28 Thread Yoann Aubineau

Yoann Aubineau added the comment:

Here is an attempt to implement such an API. The patch adds 4 methods to 
OrderedDict: move_before, move_after, insert_before and insert_after with 
corresponding tests.

The method signatures do not feel right though. I am not sure where the 
reference key should be placed in the argument list. It is especially ambiguous 
with move_* methods which simply take two keys with no hint on the one that 
will actually be moved.

--
keywords: +patch
Added file: http://bugs.python.org/file36148/issue22097.patch

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



[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Raymond Hettinger

Raymond Hettinger added the comment:

It's not  a bug.  Guido designed the Set ABC to use operators instead of the 
named methods.  The += operator for the __ior__() method that provides much of 
the same functionality.

In your concrete class, you can add an update() method easily:

   class MySet(Set):
   update = Set.__ior__()

Mutable mapping has an update() method because it is an essential part of the 
mapping API and because there is no operator equivalent as there is for the set 
API.

--

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



[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Raymond Hettinger

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


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

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ned Deily

Ned Deily added the comment:

If the activate code is moved to macosxSupport.activate(), does the
following work in EditorWindow.open_turtle_demo?
cmd = [sys.executable, '-c',
  'from idlelib.macosxSupport import activate as A; A()\n'
  'from turtledemo.__main__ import main; main()']
Does the activate code have to be called after, say, the tkinter import in
turtledemo, or is anytime in the process ok?

The activate code has to be called in the subprocess after Tk() has been called 
because only then is the subprocess guaranteed to have been promoted to an OS X 
GUI process.  So that suggestion will not work.  The idea of adding something 
to tkinter was discussed in msg192523 of issue11571, though not this specific 
solution.  If you want to pursue more generalized issues of GUI application 
behaviors on OS X, that should be the subject of another issue.  I suggest that 
this issue remain focused on the original topic.  I also would be concerned 
about adding the Run menu to the Shell window (or system menu bar when the 
Shell window is active) merely to accommodate this feature.  Having turtledemo 
in the Help menu seems fine to me.

--

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



[issue22097] Linked list API for ordereddict

2014-07-28 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I would like any proposed API extensions to be use case driven.

The omission of these methods wasn't accidental.  I studied pre-existing OD 
implementations for Python and looked at how they were used in the real-world 
(back when we still had Google Code Search available as a research tool).

For now, I *really* like the learning curve for OD is near zero and would like 
to keep it that way unless there is a compelling advantage.

--
assignee:  - rhettinger

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



[issue21740] doctest doesn't allow duck-typing callables

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

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



[issue21724] resetwarnings doesn't reset warnings registry

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

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



[issue21710] --install-base option ignored?

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

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



[issue22097] Linked list API for ordereddict

2014-07-28 Thread Antoine Pitrou

Antoine Pitrou added the comment:

My current use case is manipulation of Numba IR code. I'm working on a 
transformation pass that adds instructions at arbitrary places in existing IR. 
The primitive I need is add an instruction after another one (which is 
exactly the insert_after() primitive proposed here :-)). Since Python lacks a 
linked list-like structure, my current solution is to use a regular list, 
meaning O(n) inserts.

(a tedious solution with a regular list would be lazy inserts and batching)

The code has nothing special but you can see it here:
https://github.com/pitrou/numba/blob/7538d4c96b64a19691c2f9b6ec894f777db1a996/numba/ir.py#L538

It may be argued that the general problem more has to do with the lack of a 
linked-list structure rather than ordereddict itself. However, I can't think of 
a nice plain linked-list API in Python, while the ordereddict abstraction is 
adequate.

--

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



[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-07-28 Thread Milan Oberkirch

Milan Oberkirch added the comment:

Thanks for the review and improvements!

I fixed the warnings (didn't see them with running tests as described in the 
dev guide; I may improve that later), updated the docs to RFC 5321 (issue 19679 
is referring to RFC 3463 which is not required/updated/obsoleted by RFC 5321), 
and fixed the _print_message method of the DebuggingServer.

Testing DebuggingServer seems difficult because it prints to stdout so I'm just 
checking that no exceptions are raised.

I'm aware of the maximum command length thing but would fix it in issue 21783 
(because it becomes a bug when dealing with that).

--
Added file: http://bugs.python.org/file36149/issue21725v5.patch

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 04dd26ca02f4 by Terry Jan Reedy in branch '3.4':
Issue #17172: Add the ability to run turtledemo from Idle.
http://hg.python.org/cpython/rev/04dd26ca02f4

--
nosy: +python-dev

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I would have made the turtledemo fix a separate issue. Given the combined 
patch, I will just make separate NEWS entries (which I am working on now).

I expect there to be other new entries for Shell/Run, and will move when that 
is true.

--

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Terry J. Reedy

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


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

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



[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e344539cda11 by Terry Jan Reedy in branch '3.4':
Issue #17172: add NEWS
http://hg.python.org/cpython/rev/e344539cda11

--

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




[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Terry J. Reedy

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


--
assignee: ezio.melotti - terry.reedy

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



[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

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



[issue22086] Tab indent no longer works in interpreter

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

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



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

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



[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Minor correction to example. That should be:


   class MySet(Set):
   update = Set.__ior__

(no paren after __ior__, since we're assigning, not calling)

--
nosy: +josh.rosenberg

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