[issue5904] strftime docs do not explain locale effect on result string

2014-04-17 Thread Éric Araujo

Éric Araujo added the comment:

This may help: 
http://blog.codekills.net/2013/04/13/strftime--table-of-locale-aware-formatters-in-different-locales/

--
nosy: +wolever

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



[issue21240] Add an abstactmethod directive to the Python ReST domain

2014-04-17 Thread Georg Brandl

Georg Brandl added the comment:

LGTM without having tested it.

--

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



[issue5904] strftime docs do not explain locale effect on result string

2014-04-17 Thread David Wolever

David Wolever added the comment:

It may also be worth noting that the strftime formatters table now includes 
examples from different locales: 
https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior

This change was introduced about a year ago.

--

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



[issue21106] Updated Mac folder icon

2014-04-17 Thread Vivek Jain

Vivek Jain added the comment:

No reply from Apple yet, so I'm guessing at this stage they won't be 
responding. Does anyone have any contacts at Apple they could nudge to have a 
look at this? :) The other option is to recreate something that looks like 
Apple's folder icon but isn't. There is a tutorial at 
http://www.tutorial9.net/tutorials/photoshop-tutorials/photoshop-tutorial-design-the-mac-os-x-leopard-folder/
 (I actually used the tutorial to create the current icon, but I only used step 
10).

--

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-17 Thread Martin Panter

Martin Panter added the comment:

I don’t think these ones could be so easily fixed, but on my computer “pydoc” 
references:

* library/importlib.machinery.html (ideally should be 
library/importlib.html#module-importlib.machinery)
* library/tkinter.font.html (not in Python documentation at all that I am 
aware, except for brief mention in §25.1.1)

--
nosy: +vadmium

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Martin Panter

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


--
nosy: +vadmium

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



[issue21108] Add examples for importlib in doc

2014-04-17 Thread Martin Panter

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


--
nosy: +vadmium

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



[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-17 Thread Charles-François Natali

Charles-François Natali added the comment:

I was expecting to see such a report :-)

I'm al for the st_ino+st_dev check, it can't hurt.

But everybody must keep in mind that if another thread messes with the
FD between the check and the read, there's nothing we can do...

--

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Josiah Carlson

Josiah Carlson added the comment:

Victor, I addressed the majority of your comments except for a couple stylistic 
pieces. Your annoyance with the short poll time for Windows made me re-read the 
docs from MS, which made me realize that my interpretation was wrong. It also 
made me confirm Richard Oudkerk's earlier note about ReadFile on overlapped IOs.

I left similar notes next to your comments.

On the method naming side of things, note that you can only write to stdin, 
and you can only read from stdout or stderr. This is documented behavior, 
so I believe the method names are already quite reasonable (and BDFL approved 
;)).

--
Added file: http://bugs.python.org/file34941/subprocess_6.patch

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



[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2014-04-17 Thread Alex Lord

Alex Lord added the comment:

Have a unit test that replicates this bug. Working on the C code to fix it 
right now.

--
nosy: +Alex.Lord

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



[issue4744] asynchat documentation needs to be more precise

2014-04-17 Thread Nitika Agarwal

Nitika Agarwal added the comment:

But then I have submitted another patch issue4744_3 with the corrections.Please 
review my patch issue4744_3.patch

--

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Charles-François Natali

Charles-François Natali added the comment:

Do you have benchmarks?

(I'm not looking for an improvement, just no regression.)

--

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Richard Oudkerk

Richard Oudkerk added the comment:

If you use the short timeouts to make the wait interruptible then you can
use waitformultipleobjects (which automatically waits on an extra event
object) instead of waitforsingleobject.

--

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



[issue21106] Updated Mac folder icon

2014-04-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I see. I read the tutorial as actually giving permission to use these very 
shapes and forms for an icon. So if the resulting icon is (or could be) the 
result of following these steps, my layman's interpretation is that we have 
permission to use it.

However, the PSF has legal council for exactly this question. Please ask 
p...@python.org (with reference to this issue) whether they want to have a say 
in this, and if so, what their legal advise is.

--

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



[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2014-04-17 Thread Christoph Gohlke

Changes by Christoph Gohlke cgoh...@uci.edu:


--
nosy: +cgohlke

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Julian Taylor

Julian Taylor added the comment:

won't replacing _PyObject_GC_Malloc with a calloc cause Var objects 
(PyObject_NewVar) to be completely zeroed which I think they didn't before?
Some numeric programs stuff a lot of data into var objects and could care about 
python suddenly setting them to zero when they don't need it.
An example would be tinyarray.

--
nosy: +jtaylor

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



[issue21280] shutil.make_archive() with default root_dir parameter raises FileNotFoundError: [Errno 2] No such file or directory: ''

2014-04-17 Thread Martin Panter

New submission from Martin Panter:

 from shutil import make_archive; make_archive(a, tar)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python3.4/shutil.py, line 783, in make_archive
filename = func(base_name, base_dir, **kwargs)
  File /usr/lib/python3.4/shutil.py, line 605, in _make_tarball
os.makedirs(archive_dir)
  File /usr/lib/python3.4/os.py, line 244, in makedirs
mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''

Looking at the code, it calls os.path.dirname(a.tar) - , which would be 
the cause of this bug.

The workaround for me was adding an explicit make_archive(root_dir=.) 
parameter.

I was also surprised to see the code calling os.makedirs(archive_dir). Usually 
if you try to make a file in a non-existent directory, it fails, rather than 
automatically creating the directory for you. But maybe that’s just a general 
spirit of the “shutil” module that I didn’t pick up on.

--
components: Library (Lib)
messages: 216672
nosy: vadmium
priority: normal
severity: normal
status: open
title: shutil.make_archive() with default root_dir parameter raises 
FileNotFoundError: [Errno 2] No such file or directory: ''
versions: Python 2.7, Python 3.4

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



[issue5150] IDLE to support reindent.py

2014-04-17 Thread Ned Deily

Ned Deily added the comment:

The code needs to be updated for Python 3 and it needs a test.  I'm deassigning 
it in the hopes that someone will feel free to pick it up.

--
assignee: ned.deily - 
stage: commit review - patch review
versions: +Python 3.5 -Python 3.2

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2014-04-17 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Interesting, I wasn't aware of this FTP(S) feature.
Unfortunately RFC-4217 really doesn't say much about how this should be done 
but it definitively looks like something worth having.
AFAIU this looks like something which should be implemented by servers though, 
not clients.

--
nosy: +giampaolo.rodola
versions:  -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue21109] tarfile: Traversal attack vulnerability

2014-04-17 Thread Martin Panter

Martin Panter added the comment:

Seems like shutil._unpack_tarfile() is affected. I guess it could at least do 
with one of those warnings in the documentation for make_archive().

The patch for this bug looks a bit over enthusiastic, for example 
skip_prefixes(blaua../stuff) would incorrectly strip the first bit and just 
return stuff.

It seems there might already be plenty of existing code to check for bad paths. 
Examples that come to mind:

* http.server.SimpleHTTPRequestHandler.translate_path()
* zipfile.ZipFile._extract_member()
* shutil._unpack_zipfile()

This code either ignores the bad path elements, or ignores the whole path. 
Perhaps some of it could be recycled into a common function somewhere, rather 
than implementing it all over again for tar files.

I have written my own function joinpath() to do this sort of checking, which 
you are welcome to use:

https://bitbucket.org/vadmium/pyrescene/src/34264f6/rescene/utility.py#cl-217

You would call it with something like joinpath(tarpath.split(/), osdir).

--
nosy: +vadmium

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



[issue20309] Not all method descriptors are callable

2014-04-17 Thread eryksun

eryksun added the comment:

classmethod_descriptor instances such as vars(dict)['fromkeys'] are callable. 
The first argument has to be a subclass of __objclass__:

 vars(dict)['fromkeys'].__objclass__
class 'dict'

Calling the descriptor creates a bound built-in method; slices the args to 
remove the class; and calls it with the args and kwds.

 vars(dict)['fromkeys'](dict, 'abc')
{'a': None, 'b': None, 'c': None}

source: classmethoddescr_call
http://hg.python.org/cpython/file/04f714765c13/Objects/descrobject.c#l256

While the classmethod and staticmethod types that are defined in funcobject.c 
aren't callable, they do expose a __func__ member.

--
nosy: +eryksun

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



[issue21281] DEBUGGING: Simultaneous stopping of all threads on breakpoint and switching between threads

2014-04-17 Thread Sebastian Jylanki

New submission from Sebastian Jylanki:

When debugging with some of the other very popular tools like GDB all the 
threads are halted when a breakpoint is hit on any of the threads. Then threads 
can be switched and analyzed separately at the current state of execution.

When debugging with PDB only the thread that hits the breakpoint is halted. 
This makes it quite hard to debug multi-threaded programs (like IO based 
programs). Also it's annoying that the console output will be shown from other 
threads when the debugger is stopped.

I think it would be extremely helpful for many people to have PDB behave like 
GDB when debugging multithreaded applications: halt execution on all threads 
when breakpoint is hit and continue execution on all threads when execution is 
continued from the debugger.

--
components: Interpreter Core
messages: 216677
nosy: azyr
priority: normal
severity: normal
status: open
title: DEBUGGING: Simultaneous stopping of all threads on breakpoint and 
switching between threads
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-04-17 Thread Martin Panter

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


--
nosy: +vadmium

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



[issue5150] IDLE to support reindent.py

2014-04-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I use rstrip routinely when editing idlelib files, before committing, so it has 
been useful for that purpose.

I do not happen to know what reindent.py does that the current format options 
do not.

#18704 was about integrating the pep8 style checker. That was closed in favor 
of adding a generic facility to run external analysis tools. There is not an 
open issue for that yet, but I expect it to happen, perhaps this summer. 
Reindent.py, if maybe improved, might be a candidate, though I will also try to 
look at the patch sometime.

--

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Yuck. Is there a public FTP server available somewhere with this feature?

--
nosy: +pitrou

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The RFC is unhelpfully lousy. It's not enough to process a 522 error, since 
that can be triggered for different reasons. You also somehow have to interpret 
the error text to detect that session reuse is indeed mandated by the server.

Regardless, to progress with this we would first need to implement client-side 
SSL session reuse, which necessitates a bunch of additional APIs (since which 
session is to be reused is a decision made by user code), and a new opaque type 
to carry SSL_SESSION objects...

(see issue #8106)

--
nosy: +christian.heimes, dstufft, janssen

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Julian: No. See the diff: 
http://bugs.python.org/review/21233/diff/11644/Objects/typeobject.c

The original GC_Malloc was explicitly memset-ing after confirming that it 
received a non-NULL pointer from the underlying malloc call; that memset is 
removed in favor of using the calloc call.

--

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Well, to be more specific, PyType_GenericAlloc was originally calling one of 
two methods that didn't zero the memory (one of which was GC_Malloc), then 
memset-ing. Just realized you're talking about something else; not sure if 
you're correct about this now, but I have to get to work, will check later if 
no one else does.

--

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



[issue21279] str.translate documentation incomplete

2014-04-17 Thread Josh Rosenberg

Josh Rosenberg added the comment:

For the record, I have intentionally used bytes.maketrans to make translation 
table for str.translate for precisely this reason; it's much faster to look up 
a ordinal in a bytes object than in a dictionary. Before the recent (partial) 
patch for str.translate performance (#21118), this was a huge improvement if 
you only needed to worry about latin-1 characters (though encoding to latin-1, 
using bytes.translate, then decoding again was still faster). It's still faster 
than using a dictionary even with the patch from #21118, but it's not nearly as 
significant.

--
nosy: +josh.rosenberg

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



[issue8106] SSL session management

2014-04-17 Thread Antoine Pitrou

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


--
versions: +Python 3.5 -Python 3.3

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



[issue8106] SSL session management

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, I propose the following plan:
- add a new opaque type allowing to wrap a SSL_SESSION
- add a get_session() method to SSLSocket, returning the current session
- add an optional session=... parameter to SSLContext.wrap_socket, allowing 
to specify a session which we hope to reuse during the handshake

There is however, one complication (from OpenSSL man pages):

SSL_SESSION objects keep internal link information about the session cache 
list, when being inserted into one SSL_CTX object's session cache. One 
SSL_SESSION object, regardless of its reference count, must therefore only be 
used with one SSL_CTX object (and the SSL objects created from this SSL_CTX 
object).

So we would somehow also need to keep a pointer to the SSL context in our 
session object wrapper, and check that the session isn't reused with another 
context... (yuck)

--

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



[issue21282] setup.py: More informative error msg for modules which built but failed import check

2014-04-17 Thread Lukas Vacek

New submission from Lukas Vacek:

Hey,

Currently when a module builds successfully during cpython build but it can't 
be imported (import check around line 330 in setup.py) the module shows in 
Failed to build these modules:  which can be misleading.

Especially when linking against libraries in non-standard locations the user 
would set LD_FLAGS and CPPFLAGS and then ... wonder why the cpython build 
process is not picking the libraries up and the module is not built.

I think the modules which *have built* but were removed because of a failed 
import check should be marked as such so the user knows what happens and can 
take appropriate actions (set LD_LIBRARY_PATH as well, for example).

A patch attached - it's a very simple change (about 10 lines), created with hg 
export.

Thanks,
Lucas

--
components: Build
files: setup_failed_import_hgexport
messages: 216684
nosy: Lukas.Vacek
priority: normal
severity: normal
status: open
title: setup.py: More informative error msg for modules which built but failed 
import check
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34942/setup_failed_import_hgexport

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



[issue21281] DEBUGGING: Simultaneous stopping of all threads on breakpoint and switching between threads

2014-04-17 Thread Antoine Pitrou

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


--
nosy: +georg.brandl

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Julian Taylor

Julian Taylor added the comment:

I just tested it, PyObject_NewVar seems to use RawMalloc not the GC malloc so 
its probably fine.

--

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



[issue21283] A escape character is used when a REGEXP is an argument of strip string function

2014-04-17 Thread Tito Bouzout

New submission from Tito Bouzout:

Hello!

I got a report that the character \ was removed from a string using the 
following code

 \\server\path\to.strip(r'\'') 

At first insight, looks like a bug, because I don't expect the use of the 
escape character at all. Then I noticed, that our mistake there is that the 
strip argument should be a string not a REGEXP.

Kinda weird to read, and I've no idea if this is expected behaviour in Python, 
as I'm relatively very new. So just informing, 

Kind regards, 

-- 
Tito

--
components: Regular Expressions
messages: 216687
nosy: Tito.Bouzout, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: A escape character is used when a REGEXP is an argument of strip 
string function
type: behavior
versions: Python 3.3

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



[issue21283] A escape character is used when a REGEXP is an argument of strip string function

2014-04-17 Thread Matthew Barnett

Matthew Barnett added the comment:

The argument isn't a regex, it's a raw string literal consisting of the 
characters  (quote), \ (backslash), ' (apostrophe),  (less than) and  
(greater than).

--

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



[issue15276] unicode format does not really work in Python 2.x

2014-04-17 Thread Petr Dlouhý

Petr Dlouhý added the comment:

For anyone stuck on Python 2.x, here is an workaround (maybe it could find it's 
way to documentation also):

  def fix_grouping(bytestring):
  try:
  return unicode(bytestring)
  except UnicodeDecodeError:
  return bytestring.decode(utf-8)

--
nosy: +petr.dlo...@email.cz

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

So, in addition to +/ and -_ there are quite a few base64 variants. Worst 
thing: there are the two ambigious variants -_ and _-, even though _- 
supposedly is non-standard for its use.

See http://en.wikipedia.org/wiki/Base64

The shortest fix I can see would be to not use binascii directly from the email 
module but go through the base64 module (as pointed out by the blogpost) and 
call the urlsafe version. That should catch both cases.

Preparing a patch right now.

--
nosy: +ctheune, r.david.murray

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



[issue21273] don't defined socket constants which are not implemented for GNU/Hurd

2014-04-17 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I'm not sure this is a good idea. In general, we expose whatever libc defines, 
and let it give ENOSYS (or similar) errors if the underlying system doesn't 
actually support the behavior. Presumably, the Hurd might implement 
SO_REUSEPORT at some point.

--
nosy: +benjamin.peterson

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Josiah Carlson

Josiah Carlson added the comment:

Richard: short timeouts are no longer an issue. Nothing to worry about :)

--

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +239
versions: +Python 3.4, Python 3.5

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +240

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



[issue21273] don't defined socket constants which are not implemented for GNU/Hurd

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed, this complicates the conditional defines for no obvious benefit.

--
nosy: +pitrou

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



[issue21283] A escape character is used when a REGEXP is an argument of strip string function

2014-04-17 Thread Eric V. Smith

Eric V. Smith added the comment:

In addition, you probably want \\server\path\to to be a raw string, too. That 
way, the backslashes are not given special meaning. Notice the difference in 
output between these two:

 \\server\path\to.strip(r'\'') 
'server\\path\to'
 r\\server\path\to.strip(r'\'') 
'server\\path\\to'

In the first one, '\t' is being treated as a tab character, in the second one 
you see a backslash followed by a 't'.

My rule of thumb is: any time you have a string with a filename containing 
backslashes, you want it to be a raw string.

--
components:  -Regular Expressions
nosy: +eric.smith
resolution:  - not a bug
stage:  - committed/rejected
status: open - closed

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


Added file: http://bugs.python.org/file34944/732e7d4515c0.diff

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
keywords: +patch
Added file: http://bugs.python.org/file34943/62b280b61de7.diff

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



[issue21284] IDLE reformat tests fail in presence of non-default FormatParagraph setting

2014-04-17 Thread Raymond Hettinger

New submission from Raymond Hettinger:

When a user sets FormatParagraph to anything other than 70,
test_idle.py has 4 failing tests:

test_comment_block (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... 
FAIL
test_long_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAIL
test_multiple_lines (idlelib.idle_test.test_formatparagraph.FormatEventTest) 
... FAIL
test_short_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... 
FAIL

The solution is to make these tests setup by:
  1) save the user's default configuration
  2) set the paragraph reformat width to 70
and tear-down by:
  1) restoring the user's default configuration

--
components: IDLE
keywords: easy
messages: 216695
nosy: rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE reformat tests fail in presence of non-default FormatParagraph 
setting
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

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



[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2014-04-17 Thread Sam Kimbrel

Sam Kimbrel added the comment:

Here's a patch that corrects col_offset for binops in both the ast module and 
in the compiler proper. I've incorporated Aivar's test into test_ast.py; if 
there are test suites for compile.c please let me know and I can add something 
there too.

--
keywords: +patch
nosy: +sam.kimbrel
Added file: 
http://bugs.python.org/file34945/18374-binop-col-offset-with-test.diff

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



[issue1514420] Missing module code does spurious file search

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

I don't think the security risk exists due to this bug. As Python is searching 
for various places anyway, an attacker could just symlink one of those places 
anyway instead of 'stdin'.

--
nosy: +ctheune

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



[issue16285] Update urllib to RFC 3986

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

I'll update this.

--
nosy: +ctheune

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



[issue21259] replace except: pass by except Exception: pass

2014-04-17 Thread Berker Peksag

Berker Peksag added the comment:

This looks like a duplicate of issue 16261.

--
nosy: +berker.peksag

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

updated patch, reviewed by Thomas, checked that rpath is not added, and the the 
extensions still build.

--
nosy: +twouters
Added file: http://bugs.python.org/file34946/avoid-rpath.diff

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


Removed file: http://bugs.python.org/file26222/rpath.diff

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1a00e04a233d by doko in branch '3.4':
- Issue #15234: For BerkelyDB and Sqlite, only add the found library and
http://hg.python.org/cpython/rev/1a00e04a233d

--
nosy: +python-dev

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



[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2014-04-17 Thread Antoine Pitrou

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


--
stage:  - needs patch
type: enhancement - behavior
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  - fixed
status: open - closed

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



[issue9364] some problems with the documentation of pydoc

2014-04-17 Thread Glenn Jones

Changes by Glenn Jones gl...@millenniumhand.co.uk:


Added file: http://bugs.python.org/file34948/pydoc-2.patch

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



[issue9364] some problems with the documentation of pydoc

2014-04-17 Thread Glenn Jones

Changes by Glenn Jones gl...@millenniumhand.co.uk:


Added file: http://bugs.python.org/file34947/_sitebuiltins-2.patch

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



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue9364] some problems with the documentation of pydoc

2014-04-17 Thread Glenn Jones

Glenn Jones added the comment:

I have added patches that replace the previous ones and apply to head. It 
appears that the other changes discussed (crosslinking and improving 
documentation) have already been done.

--
nosy: +Glenn.Jones

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
title: Update urllib to RFC 3986 - Update urllib quoting to RFC 3986

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



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue21277] don't try to link _ctypes with a ffi_convenience library

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue16285] Update urllib to RFC 3986

2014-04-17 Thread Antoine Pitrou

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


--
nosy: +ncoghlan

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +241

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

New submission from Matthias Klose:

this refactors the curses configure checks, and fixes the build with ncursesw.  
In it's current form the curses feature checks are run without the additional 
include path which leads to wrong results if the only the nurses headers are 
installed.

--
components: Build
files: ncurses-configure.diff
keywords: patch
messages: 216704
nosy: doko
priority: normal
severity: normal
status: open
title: refactor anfd fix curses configure checks
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34949/ncurses-configure.diff

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
versions: +Python 2.7

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-17 Thread Éric Araujo

Éric Araujo added the comment:

Brett, any opposition to moving the doc about importlib submodules to separate 
files?

--
nosy: +brett.cannon
versions: +Python 3.5 -Python 3.3

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread R. David Murray

R. David Murray added the comment:

The patch looks good.  I'd like the comment to say We use urlsafe_b64decode 
here because some mailers apparently use the urlsafe b64 alphabet, and 
urlsafe_b64decode will correctly decode both the urlsafe and regular alphabets.

Also, the new header parser doesn't handle this case either, and furthermore it 
doesn't handle binascii errors at all (my comment in the code indicates I 
didn't think it could ever raise there).  The fact that it doesn't handle the 
error at all can be considered a different issue, but it would be nice to add 
the same decode fix (and a test in test_email/test_headerregistry.py) for the 
new header parser.  Here's one way to reproduce the issue:

 from email import message_from_string as mfs
 from email.policy import default
 m = mfs(From: 
 =?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=\n\n, 
 policy=default)
 m['From']
Traceback (most recent call last):
  File /home/rdmurray/python/p34/Lib/email/_encoded_words.py, line 109, in 
decode_b
return base64.b64decode(padded_encoded, validate=True), defects
  File /home/rdmurray/python/p34/Lib/base64.py, line 89, in b64decode
raise binascii.Error('Non-base64 digit found')
binascii.Error: Non-base64 digit found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/rdmurray/python/p34/Lib/email/message.py, line 391, in 
__getitem__
return self.get(name)
  File /home/rdmurray/python/p34/Lib/email/message.py, line 471, in get
return self.policy.header_fetch_parse(k, v)
  File /home/rdmurray/python/p34/Lib/email/policy.py, line 145, in 
header_fetch_parse
return self.header_factory(name, ''.join(value.splitlines()))
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 583, in 
__call__
return self[name](name, value)
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 194, in 
__new__
cls.parse(value, kwds)
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 334, in 
parse
kwds['parse_tree'] = address_list = cls.value_parser(value)
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 325, in 
value_parser
address_list, value = parser.get_address_list(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2313, in get_address_list
token, value = get_address(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2290, in get_address
token, value = get_group(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2246, in get_group
token, value = get_display_name(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2072, in get_display_name
token, value = get_phrase(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1747, in get_phrase
token, value = get_word(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1728, in get_word
token, value = get_atom(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1645, in get_atom
token, value = get_encoded_word(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1421, in get_encoded_word
text, charset, lang, defects = _ew.decode('=?' + tok + '?=')
  File /home/rdmurray/python/p34/Lib/email/_encoded_words.py, line 166, in 
decode
bstring, defects = _cte_decoders[cte](bstring)
  File /home/rdmurray/python/p34/Lib/email/_encoded_words.py, line 124, in 
decode_b
raise AssertionError(unexpected binascii.Error)
AssertionError: unexpected binascii.Error

--

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



[issue21268] Update pydoc module docstring

2014-04-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
resolution:  - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder:  - some problems with the documentation of pydoc

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



[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread Mark Dickinson

New submission from Mark Dickinson:

It looks as though the information from refcounts.dat isn't making it into the 
online docs for 3.4 and 3.5.  See e.g., the documentation for PyList_GetItem.  
For 3.3 [2], there's a Return value: Borrowed reference. annotation supplied 
by Sphinx's refcounting extension.  For the 3.4 and 3.5 docs that annotation is 
missing.

Issue originally reported by Jianfeng Mao on the python-dev mailing list [1].

[1] https://mail.python.org/pipermail/python-dev/2014-April/134089.html
[2] 
https://docs.python.org/3.3/c-api/list.html?highlight=pylist_getitem#PyList_GetItem

--
assignee: docs@python
components: Documentation
messages: 216707
nosy: docs@python, mark.dickinson
priority: normal
severity: normal
status: open
title: Refcounting information missing in docs for Python 3.4 and above.
versions: Python 3.4, Python 3.5

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



[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-17 Thread Brett Cannon

Brett Cannon added the comment:

No, I have no objections.

--

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



[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-17 Thread Mark Dickinson

Mark Dickinson added the comment:

Yay! Thanks, Benjamin.

--

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos:  -242

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +242

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



[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread Mark Dickinson

Mark Dickinson added the comment:

N.B.  When I build the docs locally on the default branch (using 'make html' 
from the Docs directory on a clean checkout), I *do* see the refcounting 
annotations in the html output.

--

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
versions: +Python 3.5 -Python 3.4

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
keywords: +patch
Added file: http://bugs.python.org/file34950/0be3805cade1.diff

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



[issue20434] Fix error handler of _PyString_Resize() on allocation failure

2014-04-17 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Add comments and explicit (void) on the ignored value from _PyString_Resize as 
suggested by Victor

--
Added file: http://bugs.python.org/file34951/string_resize.patch

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



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

You should put the definition closer to the Windows one (right after or before 
it) rather than further down the file. Other than that, looks good.

--

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



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Looks good.

--

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



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Looks good.

--

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



[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Chris Monsanto

Chris Monsanto added the comment:

This issue has been open for 4 years, last update was 2 months ago.

Lack of transactional DDL is a big deal for Python programs that use SQLite 
heavily.

We have a patch for Python 3 that applies cleanly and as far as I can tell 
works fine. I've been using it in testing for months, and I'm about to deploy 
it in production.

What's the next step here? What do we need to do to get something merged?

--
nosy: +monsanto

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



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

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



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Good fix. Do remove the 'first curses header check' comment you add, and don't 
forget to regenerate configure (and maybe pyconfig.h.in? I don't know if 
that'll change.)

--

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



[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread Ned Deily

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


--
nosy: +georg.brandl

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



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

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



[issue15887] urlencode should accept iterables of pairs

2014-04-17 Thread Éric Araujo

Éric Araujo added the comment:

 Convert a mapping object or a sequence of two-element tuples, which
 may either be a str or a bytes, to a “percent-encoded” string.

 Mappings, duple sequences, and duples cannot be str or bytes.

The only thing making sense to me here is that “which” refers to “element”.  
Rephrased: Convert a mapping or sequence of two-element tuples, where each 
mapping key or each first element in the tuples may be str or bytes.

--
nosy: +eric.araujo

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1bc0a8310b9f by doko in branch '2.7':
- Issue #21285: Refactor and fix curses configure check to always search
http://hg.python.org/cpython/rev/1bc0a8310b9f

New changeset 635817da596d by doko in branch '3.4':
- Issue #21285: Refactor and fix curses configure check to always search
http://hg.python.org/cpython/rev/635817da596d

--
nosy: +python-dev

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

looks like with this change the curses extension isn't built anymore on Solaris.

--
nosy: +haypo

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



[issue21285] refactor and fix curses configure checks

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
title: refactor anfd fix curses configure checks - refactor and fix curses 
configure checks

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



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  - fixed
status: open - closed

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



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  - fixed
status: open - closed

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



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  - fixed
status: open - closed

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



[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

I don't think this will be solved. File-like objects (in this case IO wrappers 
for the socket) may have different capabilities and tarfile is just expecting 
too much.

My patch for #15002 relieved the situation somewhat by providing tell() but the 
IO stream just isn't seekable. I think you'll have to download to a temporary 
file first to give tarfile all the capabilities it needs.

I guess this should be rejected.

--
nosy: +ctheune, r.david.murray

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



[issue21287] Better support for AF_PACKET on opensolaris (illumos)

2014-04-17 Thread Игорь Пашев

New submission from Игорь Пашев:

SIOCGIFINDEX could be defined in illumos (aka OpenSolaris) if BSD_COMP macro 
defined. This causes known error: no member ifr_ifindex in struct ifreq.

But OpenSolaris provides newer interface with struct lifreq and SIOCGLIFINDEX.

Attached patch tries to use it.

--
components: Library (Lib)
files: dyson-socketmodule-ifindex.patch
keywords: patch
messages: 216727
nosy: Игорь.Пашев
priority: normal
severity: normal
status: open
title: Better support for AF_PACKET on opensolaris (illumos)
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file34952/dyson-socketmodule-ifindex.patch

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



  1   2   >