[issue13297] xmlrpc.client could accept bytes for input and output

2011-11-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

Maybe a flag "use_builtin_types" is preferred?
It should implies both `bytes` and `datetime.datetime` are used for presenting 
data received.

I don't see a use case where we would like to have `bytes` for binary data but 
keep `xmlrpc.client.DateTime` for date objects.

Becomes obsolete, if this change is done:
 - xmlrpc.client.Binary
 - xmlrpc.client.DateTime
 - use_datetime flag of `ServerProxy` class and `loads` function

I'm not sure it's necessary to deprecate things here.

--

___
Python tracker 

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



[issue2979] use_datetime in SimpleXMLRPCServer

2011-11-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

See issue #13297 for a similar case with bytes.

Should we implement a "use_builtin_types" flag which supersedes "use_datetime"?

--
dependencies: +xmlrpc.client could accept bytes for input and output

___
Python tracker 

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



[issue13381] compile fails to compile a ast module object giving a incomprehensible error

2011-11-10 Thread Ronny Pfannschmidt

New submission from Ronny Pfannschmidt :

$ python3.2  -c 'import 
ast;compile(ast.parse(open("testing/test_keymap.py").read()), "test", "exec")'
Traceback (most recent call last):
  File "", line 1, in 
TypeError: AST string must be of type str

note that just compiling the source works fine

--
files: test_keymap.py
messages: 147401
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
title: compile fails to compile a ast module object giving a incomprehensible 
error
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file23652/test_keymap.py

___
Python tracker 

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



[issue13381] compile fails to compile a ast module object giving a incomprehensible error

2011-11-10 Thread Ronny Pfannschmidt

Changes by Ronny Pfannschmidt :


--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue13381] compile fails to compile a ast module object giving a incomprehensible error

2011-11-10 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed recently.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue11937] Interix support

2011-11-10 Thread Mark Dickinson

Changes by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue11937] Interix support

2011-11-10 Thread R. David Murray

R. David Murray  added the comment:

Just a note that buildbot does work behind a firewall (mine are set up that 
way). The client calls out to the master.  A really restrictive corporate 
firewall may need outbound holes punched, but there are no inbound connections 
to the client.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue11682] PEP 380 reference implementation for 3.3

2011-11-10 Thread Zbyszek Szmek

Changes by Zbyszek Szmek :


Removed file: http://bugs.python.org/file23217/0002.diff

___
Python tracker 

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



[issue11682] PEP 380 reference implementation for 3.3

2011-11-10 Thread Zbyszek Szmek

Zbyszek Szmek  added the comment:

Nick Coghlan wrote:
> I don't want to completely rearrange the yield related sections of the
> language reference as part of incorporating this PEP. If you're happy
> to submit a new pull request with a minimalist change just documenting
> the new features, that would be great, otherwise I'll eventually
> figure out my own set of updates.

OK, I should have it ready before Monday.

> The cross-linking fixes are independent of this PEP, and should be
> handled as a separate tracker issue rather than being rolled into the
> PEP update.
Will do so.

Zbyszek

--

___
Python tracker 

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



[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-10 Thread sbt

sbt  added the comment:

> Ouch. Were they only non-blocking codepaths?

Yes.

> raw_pos is the position which the underlying raw stream is currently
> at.  It only needs to be modified when a successful write(), read()
> or seek() is done on the raw stream.

Do you mean self->raw_pos should give the same answer as self.raw.tell()?  (But 
that seems to be the definition of self->abs_pos.)  Or is it the buffer offset 
which corresponds to self.raw.tell()?

--

___
Python tracker 

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



[issue13297] xmlrpc.client could accept bytes for input and output

2011-11-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

This patch v3 implements the proposal of use_builtin_types flag.
In this case the use_datetime flag becomes obsolete.

Please comment.

--
Added file: http://bugs.python.org/file23653/issue13297_xmlrpc_bytes_v3.diff

___
Python tracker 

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



[issue7777] Support needed for AF_RDS family

2011-11-10 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 2293ca739223 by Charles-François Natali in branch 'default':
Issue #: socket: Add Reliable Datagram Sockets (PF_RDS) support.
http://hg.python.org/cpython/rev/2293ca739223

--
nosy: +python-dev

___
Python tracker 

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



[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-10 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset a9f10c3eff69 by Charles-François Natali in branch 'default':
Issue #13303: Fix bytecode file default permission.
http://hg.python.org/cpython/rev/a9f10c3eff69

--

___
Python tracker 

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



[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Do you mean self->raw_pos should give the same answer as
> self.raw.tell()?  (But that seems to be the definition of
> self->abs_pos.)  Or is it the buffer offset which corresponds to
> self.raw.tell()?

The latter.

--

___
Python tracker 

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



[issue2979] use_builtin_types in SimpleXMLRPCServer

2011-11-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

This is the proposed patch which could be applied after issue #13297 is solved.

--
title: use_datetime in SimpleXMLRPCServer -> use_builtin_types in 
SimpleXMLRPCServer
Added file: http://bugs.python.org/file23654/issue2979_xmlrpc_server.diff

___
Python tracker 

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



[issue2979] use_builtin_types in xmlrpc.server

2011-11-10 Thread Florent Xicluna

Changes by Florent Xicluna :


--
components: +XML
title: use_builtin_types in SimpleXMLRPCServer -> use_builtin_types in 
xmlrpc.server

___
Python tracker 

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



[issue13149] optimization for append-only StringIO

2011-11-10 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 8d9a869db675 by Antoine Pitrou in branch 'default':
Issue #13149: Speed up append-only StringIO objects.
http://hg.python.org/cpython/rev/8d9a869db675

--
nosy: +python-dev

___
Python tracker 

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



[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-10 Thread Charles-François Natali

Changes by Charles-François Natali :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue7777] Support needed for AF_RDS family

2011-11-10 Thread Charles-François Natali

Changes by Charles-François Natali :


--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue13149] optimization for append-only StringIO

2011-11-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I've committed an improved version (which also optimizes seek(0); read()).

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

It is definitely a glibc issue. Here's a C snippet to reproduce:

"""
#include 
#include 

int main() {
time_t t;
struct tm tmp;
char str[200];

t = time(NULL);
tmp = *gmtime(&t);
tmp.tm_gmtoff = 0;
tmp.tm_zone = NULL;

strftime(str, sizeof(str), "%Z", &tmp);
puts(str);

t = -2461446500;
localtime(&t);

t = time(NULL);
tmp = *gmtime(&t);
tmp.tm_gmtoff = 0;
tmp.tm_zone = NULL;

strftime(str, sizeof(str), "%Z", &tmp);
puts(str);

return 0;
}
"""

Output:
CET
PMT


Calling localtime() or mktime() with a time largely in the past seems to 
corrupt the glibc's internal time structures (the "char *tm_zone[]").

--

___
Python tracker 

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



[issue13382] completions in IDLE

2011-11-10 Thread Bill Meng

New submission from Bill Meng :

I'm running Python 2.7 on a Mac OS 10.4
When I select Edit/completions from the menu, only the first 10 appear with a 
slider to the right. But the slider does not move to see the rest of the list.

--
components: IDLE
messages: 147414
nosy: cpat
priority: normal
severity: normal
status: open
title: completions in IDLE
versions: Python 2.7

___
Python tracker 

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



[issue13378] Change the variable "nsmap" from global to instance (xml.etree.ElementTree)

2011-11-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

This patch proposes an implementation of the feature.


>>> from xml.etree import ElementTree as ET
>>> ET.tostring(ET.Element('{http://localhost/house}iq'), encoding="unicode", 
>>> namespaces={'http://localhost/house': 'home'})
'http://localhost/house"; />'

--
keywords: +patch
stage:  -> patch review
Added file: 
http://bugs.python.org/file23655/issue13378_non_global_namespaces.diff

___
Python tracker 

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



[issue13378] Change the variable "nsmap" from global to instance (xml.etree.ElementTree)

2011-11-10 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +scoder

___
Python tracker 

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



[issue13382] IDLE menu scroll bar does not scroll with OS X 10.4 Apple Tcl/Tk

2011-11-10 Thread Ned Deily

Ned Deily  added the comment:

I can reproduce that using a Python that uses the Apple-suppled Tcl 8.4 
framework in OS X 10.4.11. That version of Tcl 8.4 is quite old.  If you are 
using a Python 2.7.x from a python.org installer, you may be able to use a 
newer version of Tcl by installing a current Tcl 8.4 (8.4.19.5 is current at 
the moment) from ActiveState (http://www.activestate.com/activetcl/downloads).  
The menu scroll bar seems to work correctly with the newer Tcl.  The python.org 
Pythons will automatically use the newer ActiveState version if it is 
installed.  Otherwise, if you must use the Apple Tcl, although the menu scroll 
bar does not work on the list when you use a mouse, you can still step through 
the list by selecting a menu item and using the Up and Down arrow keys on the 
keyboard.

--
assignee:  -> ned.deily
nosy: +ned.deily
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
title: completions in IDLE -> IDLE menu scroll bar does not scroll with OS X 
10.4 Apple Tcl/Tk

___
Python tracker 

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



[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-10 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 05164831011e by Antoine Pitrou in branch 'default':
Avoid a glibc bug in test_time (issue #13309)
http://hg.python.org/cpython/rev/05164831011e

--

___
Python tracker 

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



[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-10 Thread Ross Lagerwall

Ross Lagerwall  added the comment:

Has it been reported?

--

___
Python tracker 

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



[issue13378] Change the variable "nsmap" from global to instance (xml.etree.ElementTree)

2011-11-10 Thread Stefan Behnel

Stefan Behnel  added the comment:

Florent, thanks for the notification.

Nekmo, note that you are misusing this feature. The _namespace_map is meant to 
provide "well known namespace prefixes" only, so that common namespaces end up 
using the "expected" prefix. This is also the reason why it maps namespaces to 
prefixes and not the other way round. It is not meant to temporarily assign 
arbitrary prefix to namespaces. That is the reason for it being a global option.

That being said, lxml.etree's Element factory takes an "nsmap" parameter that 
implements the feature you want. It's documented here:

http://lxml.de/tutorial.html#namespaces

Note that it maps prefixes to namespaces and not the other way round. This is 
because there is a corresponding "nsmap" property on Elements that provides the 
currently defined prefixes in the context of an Element. ElementTree itself 
does not (and cannot) support this property because it drops the prefixes 
during parsing. However, I would still request that an implementation of the 
parameter to the Element() factory should be compatible for both libraries.

Also look for "nsmap" in the compatibility docs (appears in two sections):

http://lxml.de/compatibility.html

--

___
Python tracker 

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