[issue21965] Add support for Memory BIO to _ssl

2014-10-04 Thread Geert Jansen

Geert Jansen added the comment:

Addded the comment about owner being a weakref, and added a new consolidated 
patch (ssl-memory-bio-5).

--
Added file: http://bugs.python.org/file36806/ssl-memory-bio-5.patch

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



[issue13473] Add tests for files byte-compiled by distutils

2014-10-04 Thread R. David Murray

R. David Murray added the comment:

Looks like someone should revise this patch taking in to account Nick's 
feedback, and updating it to apply to distutils instead of the now-defunct 
distutils2/packaging.  

Moving stage to 'needs patch'.

--
assignee: eric.araujo - 
components:  -Distutils2
nosy: +dstufft, r.david.murray
stage: commit review - needs patch
title: Add tests for files byte-compiled by distutils[2] - Add tests for files 
byte-compiled by distutils
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

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



[issue11063] uuid.py module import has heavy side effects

2014-10-04 Thread Antoine Pitrou

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


--
nosy: +serhiy.storchaka
stage: needs patch - patch review
versions: +Python 3.5 -Python 3.4

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



[issue6653] Potential memory leak in multiprocessing

2014-10-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Closing as won't fix.

--
resolution:  - wont fix
stage: needs patch - resolved
status: open - closed

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



[issue22546] Wrong default precision in documentation for format

2014-10-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I see now that my expectation, based on decimal rounding rather than binary 
conversion and rounding, was wrong ;-)
 33.14159265358979323846264338327950288419 == 33.1415926535898
True
 33.14159265358979323846264338327950288419 == 33.14159265358979
False
 format(33.14159265358979323846264338327950288419, '.18')
'33.1415926535897967'

Tommy: 3.3 only gets security fixes.  When a core developer (indicated by the 
blue and yellow snake symbol) resets Versions, you should leave them alone or 
ask before changing.

As for the patch: 'non-scientific' == 'fixed-point', the expression already 
used in the table. The rewrite omits the fact the exception is to match str and 
that g and str are otherwise the same except for fixed versus 'as needed' 
precision.  I note that '' = 'd' for integers also makes '' for integers 
similar to str() as modified by the preceding options.  An alternate rewrite:

Similar to 'g', except that fixed-point notation, when used, has at least one 
digit past the decimal point.  The default precision is as high as needed to 
represent the particular value. The overall effect is to match the output of 
str() as altered by the other format modifiers.

--
The following in the examples could be fixed in the same patch
 '{:+f}; {:+f}'.format(3.14, -3.14)  # show it always
'+3.14; -3.14'

add to the comment 'it always displays a sign'.

--
versions:  -Python 3.3

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



[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2014-10-04 Thread Martin Panter

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


--
nosy: +vadmium

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



[issue7175] Define a standard location and API for configuration files

2014-10-04 Thread Martin Panter

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


--
nosy: +vadmium

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



[issue20267] TemporaryDirectory does not resolve path when created using a relative path

2014-10-04 Thread Antony Lee

Antony Lee added the comment:

The change would be backwards-incompatible but also mimics the behavior of 
NamedTemporaryFile (which also fails to delete the file if the containing 
folder has been renamed -- this is easy to verify manually).
I guess the other option would be to use fd-based semantics?  (but it'd be 
preferable if the behavior was kept the same between TemporaryDirectory and 
NamedTemporaryFile).

--

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



[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-10-04 Thread Dan O'Reilly

Dan O'Reilly added the comment:

Hey, my first committed patch :) Thanks for helping to push this through, 
Antoine!

--

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



[issue20997] Wrong URL fragment identifier in search result

2014-10-04 Thread Mark Lawrence

Mark Lawrence added the comment:

What's the verdict on this guys?

--
nosy: +BreamoreBoy
status: pending - open

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



[issue21231] Issue a python 3 warning when old style classes are defined.

2014-10-04 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as won't fix or what?

--
nosy: +BreamoreBoy
status: pending - open

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



[issue20394] Coverity complains on audioop

2014-10-04 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a decision as to whether or not the patch should be back ported to 
2.7.

--
nosy: +BreamoreBoy
status: pending - open

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



[issue21623] build ssl failed use vs2010 express

2014-10-04 Thread Mark Lawrence

Mark Lawrence added the comment:

I have never had a problem building ssl with vs2010 express so can this be 
closed?

--
nosy: +BreamoreBoy
status: pending - open

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



[issue15862] IDLE not working when due to wrong Hard Drive point of os.path.expanduser

2014-10-04 Thread Mark Lawrence

Mark Lawrence added the comment:

@Terry what is your take on this?

--
nosy: +BreamoreBoy, terry.reedy
status: pending - open

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



[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-10-04 Thread Mark Lawrence

Mark Lawrence added the comment:

As there has been no response can this be closed?

--
nosy: +BreamoreBoy
status: pending - open

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



[issue1757072] Zipfile robustness

2014-10-04 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm assuming that this can now be closed.

--
nosy: +BreamoreBoy
status: pending - open

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



[issue21231] Issue a python 3 warning when old style classes are defined.

2014-10-04 Thread Ezio Melotti

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


--
status: open - pending

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



[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-04 Thread Ivan Pozdeev

Ivan Pozdeev added the comment:

@R. David Murray: haha, the reverse change that introduced this problem in the 
first place! issue 14201's problem is exactly why I was going to suggest to 
also make _FuncPtr's compare equal if they point to the same function.

@eryksun: Packages do this because it's the natural thing to do - there's no 
apparent way to clone a pointer, there's not even a notion they _need_ to be 
cloned. https://docs.python.org/2/library/ctypes.html#loading-shared-libraries 
only documents __getattr__() and behavior of a LibraryLoader, not of a CDLL . 

Bottom line: ctypes currently leaves a trap for users to fall into. While 
Python's paradigm is make right things easy, make wrong things hard.

So, he optimal way seems to require to clone function pointers to set 
attributes. I'm going to add a guard attribute and a `clone' method to 
_FuncPtr. It's discussable whether to make cloned/altered pointers compare 
equal to the originals.

--

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



[issue18131] Tkinter Variables require a proper master

2014-10-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

My first message discussed two different issues.  The first, generalized, is 
that unconditionally using tkinter._default_root, which can be either None or 
absent, as a backup for master=None in __init__ functions, seems a bit sloppy.  
Image.__init__ does this check
if not master:
master = _default_root
if not master:
raise RuntimeError('Too early to create image')
but that will fail if _default_root has been deleted.  Also, the message is 
wrong in that it is not 'too early' if an explicit master is passed.  I am 
thinking that all uses of _default_root should raise something like 
WhateverError(An explicit master is required when _default_root is None or 
deleted.)  Serhiy, what do you think?

The second issue noted that while widgets often have a container widget as 
master, the non-graphics classes like Variable and Font should have a Tk and 
not a widget as master.  I have corrected idlelib.configHandler and there is a 
tkinter patch on another issue (applied yet?) to automatically replace 
master=widget by master-widget.tk.  So Variable calls are no longer part of 
this issue.

--
nosy: +serhiy.storchaka

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



[issue21623] build ssl failed use vs2010 express

2014-10-04 Thread Zachary Ware

Zachary Ware added the comment:

Mo Jia: if you have any information to add later, feel free to reopen the 
issue, but so far nobody else can reproduce your error.

--
assignee:  - zach.ware
stage:  - resolved
status: open - closed

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



[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-04 Thread eryksun

eryksun added the comment:

 How does this relate to issue 14201?  That is, is the answer just 
 use getitem if you don't want caching? 

Unlike CDLL.__getitem__, LibraryLoader.__getitem__ does use the attribute 
cache. Why use a LibraryLoader if you don't want the cached libs and access to 
their cached function pointers? That's its main reason for existing.  But 
really only in Windows, since most DLL names work as a attributes and Windows 
LoadLibrary appends .DLL. If you don't want cached libs, don't use a 
LibraryLoader. Just use CDLL('msvcr100'), WinDLL('kernel32'), etc. If you want 
cached libs without polluting ctypes.cdll or ctypes.windll, just create your 
own instance such as windll = ctypes.LibraryLoader(ctypes.WinDLL).

--

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



[issue21699] Windows Python 3.4.1 pyvenv doesn't work in directories with spaces.

2014-10-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Note that this is also tricky to test - we *don't* currently activate the venv 
in the test suite, instead relying on a -m invocation.

However, I think this error shows that a new automated test is needed that 
covers the activation case, as there are some additional code paths exercised 
in that situation that aren't currently being adequately covered.

--
stage: needs patch - test needed

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



[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-10-04 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the review, David.

 The standard error message for this case is:

  xxx() got an unexpected keyword argument 'foo'

I found two similar messages in the codebase:

* In Modules/itertoolsmodule.c:

PyErr_SetString(PyExc_TypeError,
zip_longest() got an unexpected keyword argument);

* In Python/ceval.c:

PyErr_Format(PyExc_TypeError,
 %U() got an unexpected 
 keyword argument '%S',
 co-co_name,
 keyword);

But, in ImportError case it can take more than one keyword arguments:

   ImportError(spam=SPAM, eggs=True)

What error message should be printed for the above case?

--

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



[issue15862] IDLE: startup problem when HOME does not exist

2014-10-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This is one of multiple  reports about problems with finding and reading 
HOME/.idlerc/*.*.  I believe that if nothing else, Idle should issue a warning 
message (that not not crash Idle), set a flag, and continue. The configuration 
dialog should also warn that changes will not be saved.

This particular situation is about a Windows system with HOME set but pointing 
to a directory on a drive that is not currently mounted.  The user could create 
a .bat file that resets HOME, but Idle could also try harder to find a usable 
directory (so that the installed version specific icons work).  Currently 
USERPROFILE is used (in os.expanduser) as a backup if HOME does not exist.  It 
could also be used as a backup is HOME exists buts is not usable.  Dittle for 
HOMEDRIVE and HOMEPATH used to backup USERPROFILE.  Or Idle could change 
'x:somepath', where x is not 'c', to 'c:somepath'.

Or maybe Idle should recognize an IDLE_RC env var so a user like Cemal can run 
idle with the same set of user config files regardless of whether connected to 
a corporate network or not.  This would also help someone (like me) who wants 
to use the same config files regardless of whether logged in and running as 
admin or normal user.

--
title: IDLE not working when due to wrong Hard Drive point of 
os.path.expanduser - IDLE: startup problem when HOME does not exist
versions: +Python 3.4, Python 3.5

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



[issue21699] Windows Python 3.4.1 pyvenv doesn't work in directories with spaces.

2014-10-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Also reducing the priority back to normal - the docs at 
https://docs.python.org/3/installing/ already specifically recommend the 
python -m pip spelling because it's the most universal.

Calling pip directly is known to fail in a variety of situations. For 
example, at system level on *nix systems, it invokes the Python 2 version - you 
have to call pip3 to get the Python 3 version. On Windows, if the Scripts 
directory isn't on PATH, calling pip directly also doesn't work.

This bug just adds another scenario to that existing list.

(I filed https://github.com/pypa/python-packaging-user-guide/issues/107 to 
suggest also making the pip - python -m pip switch in PyPUG examples)

--
priority: critical - normal

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



[issue18903] IDLE file-completion is case-sensitive in Windows

2014-10-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Wesley himself suggested that it is not ready to apply.  There are currently 7 
completion issues for Idle.  I hope to someday work on all of them together, 
alone with a test file. But there are a couple of other issue clusters that I 
consider higher priority.

--
stage: needs patch - patch review
versions: +Python 2.7

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



[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-10-04 Thread Berker Peksag

Berker Peksag added the comment:

Here's a patch with a whatsnew entry.

--
stage: needs patch - patch review
Added file: http://bugs.python.org/file36807/issue6623.diff

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



[issue21072] Python docs and downloads not available for Egypt

2014-10-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Is this problem still occurring?

There were recently some problems in other regions with *.python.org getting 
caught up in national IP filters, which our CDN provider has now resolved by 
providing us with dedicated IP addresses. These aren't shared with any other 
users, and hence shouldn't be subject to IP filtering.

--
nosy: +ncoghlan

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



[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2014-10-04 Thread Berker Peksag

Berker Peksag added the comment:

Marc-Andre, could you please take a look to the latest patch?

--
components:  -Tests
keywords: +needs review
title: platform.dist() has unpredictable result under Linux - Deprecate 
platform.dist() and platform.linux_distribution() functions
type: behavior - enhancement

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



[issue21338] Silent mode for compileall

2014-10-04 Thread Berker Peksag

Berker Peksag added the comment:

Here's an updated patch. Thanks David.

--
Added file: http://bugs.python.org/file36808/issue21338.diff

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



[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-04 Thread eryksun

eryksun added the comment:

 Packages do this because it's the natural thing to do

I guess the tutorial is channeling projects toward using the cdll/windll 
LibraryLoader instances on Windows. It even shows using 
cdll.LoadLibrary('libc.so.6') on Linux. That's equivalent to CDLL('libc.so.6'); 
I don't know why one would bother with cdll.LoadLibrary.

 there's not even a notion they _need_ to be cloned. 

The ctypes reference has always explained how CDLL instances cache function 
pointers via __getattr__ and (formerly) __getitem__. 

The same section also documents that LibraryLoader.__getattr__ caches 
libraries. However, it's missing an explanation of LibraryLoader.__getitem__, 
which returns getattr(self, name), for use when the library name isn't a valid 
Python identifier.

 there's no apparent way to clone a pointer

You can use pointer casting or from_buffer_copy to create a new function 
pointer. It isn't a clone because it only uses the function pointer type, not 
the current value of restype, argtypes, and errcheck. But this may be all you 
need. For example:

 from ctypes import *
 libm = CDLL('libm.so.6')

cast:

 sin = cast(libm.sin, CFUNCTYPE(c_double, c_double))
 sin(3.14/2)
0.996829318346

 sin2 = cast(sin, type(sin))
 sin2.argtypes
(class 'ctypes.c_double',)
 sin2.restype
class 'ctypes.c_double'

from_buffer_copy:

 sin = CFUNCTYPE(c_double, c_double).from_buffer_copy(libm.sin)
 sin(3.14/2)
0.996829318346

https://docs.python.org/3/library/ctypes.html#ctypes.cast
https://docs.python.org/3/library/ctypes.html#function-prototypes

--

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



[issue8138] wsgiref.simple_server.SimpleServer claims to be multithreaded

2014-10-04 Thread Berker Peksag

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


--
nosy: +berker.peksag
stage:  - patch review

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



[issue22555] Tracking issue for adjustments to binary/text boundary handling

2014-10-04 Thread Nick Coghlan

New submission from Nick Coghlan:

See PEP 478 for the PEP level items targeting 3.5: 
http://www.python.org/dev/peps/pep-0478/

This is a tracking issue to help me keep track of some lower level items that 
didn't make the release PEP:

* Improved Windows console Unicode support (see
https://pypi.python.org/pypi/win_unicode_console for details)
* Changing the encoding and error handling of an existing stream
(http://bugs.python.org/issue15216)
* Allowing backslashreplace to be used on input 
(http://bugs.python.org/issue22286)
* Adding codecs.convert_surrogates (http://bugs.python.org/issue18814)
* Adding wsgiref.util.dump_wsgistr and wsgiref.util.load_wsgistr 
(http://bugs.python.org/issue22264)
* Adding bytes.hex, bytearray.hex and memoryview.hex 
(http://bugs.python.org/issue9951)
* Adding a binary data formatting mini-language (depends on 9951, likely needs 
to be escalated to a full PEP for design discussion visibility) 
(http://bugs.python.org/issue22385)

Going back and updating http://www.python.org/dev/peps/pep-0467/ based on the 
last round of feedback is also on my personal todo list for 3.5.

--
messages: 228536
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: Tracking issue for adjustments to binary/text boundary handling

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



[issue22555] Tracking issue for adjustments to binary/text boundary handling

2014-10-04 Thread Nick Coghlan

Nick Coghlan added the comment:

PEP 461 binary interpolation implementation issue: 
http://bugs.python.org/issue20284

--
dependencies: +Add codecs.convert_surrogateescape to clean surrogate escaped 
strings, Add wsgiref.util.dump_wsgistr  load_wsgistr, Allow backslashreplace 
error handler to be used on input, Define a binary output formatting 
mini-language for *.hex(), Support setting the encoding on a text stream after 
creation, introduce bytes.hex method (also for bytearray and memoryview), patch 
to implement PEP 461 (%-interpolation for bytes)

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



[issue22552] ctypes.CDLL returns singleton objects, resulting in usage conflicts

2014-10-04 Thread Ivan Pozdeev

Ivan Pozdeev added the comment:

 If you want cached libs without polluting ctypes.cdll or ctypes.windll, just 
 create your own instance such as windll = ctypes.LibraryLoader(ctypes.WinDLL).

This one looks like the next best thing to the current state of affairs, 
requiring minimal change to existing code.

`cast' appears to be the right way when saving individual _FuncPtr's in a 
local namespace but it's far from being obvious.

If going this way, a prominent warning in 
https://docs.python.org/2.7/library/ctypes.html?highlight=ctypes#loading-dynamic-link-libraries
 with the way to go would probably suffice.

--

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



[issue8138] wsgiref.simple_server.SimpleServer claims to be multithreaded

2014-10-04 Thread Berker Peksag

Berker Peksag added the comment:

Looks like Werkzeug had a workaround for this bug:


https://github.com/mitsuhiko/werkzeug/commit/f9e2fad30d34a6b0737539434c03c07c2bc658d4

--

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



[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-10-04 Thread R. David Murray

R. David Murray added the comment:

Just the first unexpected keyword.  That's what happens if you pass more than 
one unexpected keyword to a python function.

--

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



<    1   2