[issue2736] datetime needs an epoch method

2010-05-22 Thread Sebastian Rittau

Changes by Sebastian Rittau srit...@jroger.in-berlin.de:


--
nosy:  -srittau

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



[issue8785] findall() and finditer() docs misleading

2010-05-22 Thread Hagen Fürstenau

New submission from Hagen Fürstenau hfuerste...@gmx.net:

The docs for the RegexpObject methods findall and finditer are misleading: They 
are said to behave the same way as the respective functions, but in fact the 
parameter semantics are different.

--
assignee: d...@python
components: Documentation
messages: 106286
nosy: d...@python, hagen
priority: normal
severity: normal
status: open
title: findall() and finditer() docs misleading
versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3

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



[issue8785] findall() and finditer() docs misleading

2010-05-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks, fixed in r81463.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

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



[issue1436346] yday in datetime module

2010-05-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Care to suggest a patch?

--

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



[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-22 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

Yes, I saw that, thanks for explanation!

So I work a patch against the trunk, including modification of fileio_write(), 
bufferedwriter_write() and test_fileio.py.

--
Added file: http://bugs.python.org/file17436/issue_8765.diff

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



[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

I'm busy implementing the IEEE754 contexts for cdecimal. To keep things
in sync, it would be nice to agree how they should be created.


Suggestions:

1) c = Decimal64Context

2) c = Context(Decimal64)

3) ?


I have a preference for 2). It's clear that you get a new Object and
the user does not have to wonder if a template context will be
contaminated when using setcontext(Decimal64Context).

(I know there are measures against that, but setcontext( Context(Decimal64))
is explicit rather than implicit.)

--

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



[issue8188] Unified hash for numeric types.

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Updated patch:

 - make hash(m/P) preserve sign, as discussed earlier
 - add details for computing the hash of a complex number
 - reorganize sys.hash_info
- drop sys.hash_info.bits (the exponent of the Mersenne prime);
  it's not needed in the Python code, and it can be deduced from
  the prime itself if necessary.  This also means that there's no
  public requirement that the prime be a Mersenne prime.
- drop sys.hash_info.ninf;  just use -sys.hash_info.inf instead

- add sys.hash_info.width:  the underlying width in bits for hashes
  of all descriptions;  in other words, it's just the number of bits
  in a C long in the current implementation
- add sys.hash_info.imag, the multiplier used for the imaginary
  part of a complex number

--
Added file: http://bugs.python.org/file17437/numeric_hash8.patch

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



[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

 1) c = Decimal64Context
 
 2) c = Context(Decimal64)

Rather that complicating the Context constructor, I'd prefer a separate factory 
function.  I was thinking of something like:

def IEEEContext(n):
Return the decimaln IEEE 754 context.  n should be a multiple
of 32.
...

Again, it's clear with this that you get a new context object (I agree that 
there are problems with (1) and the mutability of Contexts).

--

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



[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

BTW, let's open another issue for support of the IEEE 754 contexts, and keep 
this one for exposing _clamp.  Otherwise life gets confusing when you're trying 
to decide when an issue can be closed, etc...

--

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



[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Mark Dickinson

New submission from Mark Dickinson dicki...@gmail.com:

Discussion migrated from issue 8540 into its own issue.

For ease of communication with other libraries, it would be good to be able to 
easily create contexts corresponding to the IEEE 754 (2008) decimal interchange 
formats.

--
messages: 106294
nosy: facundobatista, mark.dickinson, rhettinger, skrah
priority: normal
severity: normal
status: open
title: Add support for IEEE 754 contexts to decimal module.
versions: Python 3.2

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



[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Amaury, do you remember if we made this deliberately?

--
nosy: +amaury.forgeotdarc

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



[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Some context from issue 8540:

[Stefan Krah]
 I'm busy implementing the IEEE754 contexts for cdecimal. To keep things
 in sync, it would be nice to agree how they should be created.


 Suggestions:

 1) c = Decimal64Context

 2) c = Context(Decimal64)


[Mark Dickinson]
 Rather that complicating the Context constructor, I'd prefer a separate 
 factory
 function.  I was thinking of something like:

 def IEEEContext(n):
 Return the decimaln IEEE 754 context.  n should be a multiple
of 32.
 ...

 Again, it's clear with this that you get a new context object (I agree that 
 there are problems with (1) and the mutability of Contexts).

I like that, too. Where do you find the multiple of 32 in the standard?
In a draft of IEEE 754, I only see:

Table 2—Interchange format parameters defining floating-point numbers:

  storage format: decimal32

  basic format: decimal64 and decimal128


This is what Java and decNumber offer.

--

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



[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

It's Table 3.6 (Decimal interchange format parameters) in the final version 
of IEEE 754;  I'm not sure what that corresponds to in the various drafts.  It 
has column headings: decimal32, decimal64, decimal128 and decimal{k} (k 
= 32).

Parameters for decimal{k}:  k must be a multiple of 32.  precision is   
9*k/32-2.  emax is 3*2**(k/16+3).  I think these formulas all work for the 
specific cases k in {32, 64, 128} too, so it should be easy to check that they 
make sense.

They give an example below the table, too:

For example, decimal256 would have p = 70 and emax = 1572864.

--

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



[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2010-05-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks for the patch!  Applied in r81465 f.  Merged to 2.x in r81467, will 
merge to 3k later.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

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



[issue8016] Support for cp858

2010-05-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Benjamin: OK to put this in 2.7?

--
assignee:  - benjamin.peterson
nosy: +benjamin.peterson, georg.brandl
priority: normal - high

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



[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Here's a patch for changing '_clamp' into 'clamp'.

--
keywords: +patch
Added file: http://bugs.python.org/file17438/decimal_public_clamp.patch

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



[issue8635] enumerate() docstring doesn't cover optional start argument

2010-05-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks, fixed in r81468 with a slightly different patch.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

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



[issue8749] Cruft in object.c: PyObject_GenericGetAttr

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Fixed in r81470.

--
resolution:  - fixed
status: open - closed

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



[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Mark Dickinson rep...@bugs.python.org wrote:
 It's Table 3.6 (Decimal interchange format parameters) in the final version 
 of IEEE 754;

Thanks! I think this is not in the draft I have.

+1 for IEEEContext(n). Could we have module constants Decimal32, Decimal64 and
Decimal128 so that people coming from Java or DecNumber can write:

c = IEEEContext(Decimal64)

It is somewhat redundant, but 99% of people will use only those.

--

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



[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
components: +Library (Lib)
stage:  - needs patch
type:  - feature request

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



[issue8782] inspect.getsource returns invalid source for non-newline-ending module

2010-05-22 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

2010/5/22 holger krekel rep...@bugs.python.org:

 holger krekel holger.kre...@gmail.com added the comment:

 Great. Also to be backported to 2.x?

That is 2.x.

--

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



[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

The patch looks good, +1 for applying it. I'm not a native speaker, but
probably:

are subject to clamping this manner = are subject to clamping in this 
manner

--

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



[issue8787] PySys_Get

2010-05-22 Thread Sebastian

New submission from Sebastian python.10.webmas...@spamgourmet.com:

Hi all,

I found a bug in the exception handler. When I
start the app without any arguments I get an
output I expect:

__main__:2:DeprecationWarning: Deprecated function.

When I run the app with arguments, the arguments
are printed somehow in the exception output:

-test=HALLO:1:DeprecationWarning: Deprecated function

Can anyone please confirm?

Bye, Seb



[code]
#include Python/Python.h

static PyObject *testfunc(PyObject *self, PyObject *args, PyObject *keywords)
{
PyErr_Warn(PyExc_DeprecationWarning, Deprecated function.);
Py_RETURN_NONE;
}

static PyMethodDef testmod[] =
{   
{testfunc, (PyCFunction)testfunc, METH_NOARGS, Prints out a text to 
stdout.},
{NULL}
};

int main (int argc, char **argv)
{
Py_Initialize();

PySys_SetArgv(argc, argv);

PyObject *mod = Py_InitModule4(testmod, testmod, , NULL, 
PYTHON_API_VERSION);
if(mod == NULL) return -1;

PyRun_SimpleString( import testmod\n

testmod.testfunc());
Py_Finalize();
return 0;
}
[/code]

--
components: None
messages: 106306
nosy: Sebastian
priority: normal
severity: normal
status: open
title: PySys_Get
type: behavior
versions: Python 2.6

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



[issue8787] PySys_Get

2010-05-22 Thread Sebastian

Sebastian python.10.webmas...@spamgourmet.com added the comment:

Could anyone please correct the title? Thx :)

--

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



[issue6900] Sub-optimal Locate button behaviour in Windows CHM file

2010-05-22 Thread Tiberius Teng

Tiberius Teng tiberius.t...@gmail.com added the comment:

I believe I have isolated the problem.

After generating html help files with sphinx
$ sphinx-build -bhtmlhelp -a . build

Edit build/python265.hhp and remove following two lines:

Binary TOC=Yes
Binary Index=No

And build the chm again, the result file will have the correct 'Locate' button 
functionality. I believe the problem is caused by Binary TOC.

--
nosy: +Tiberius.Teng

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



[issue6900] Sub-optimal Locate button behaviour in Windows CHM file

2010-05-22 Thread Tiberius Teng

Tiberius Teng tiberius.t...@gmail.com added the comment:

I have built a copy myself, with some icon style/CSS tweaking. Please test it 
out ;)

--
Added file: http://bugs.python.org/file17439/python265.chm

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



[issue6900] Sub-optimal Locate button behaviour in Windows CHM file

2010-05-22 Thread Tiberius Teng

Tiberius Teng tiberius.t...@gmail.com added the comment:

Here's the .hhp file I used to compile this chm, other files can be obtained by 
using HTML Help Workshop to decompile this chm.

--
Added file: http://bugs.python.org/file17440/python265.hhp

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



[issue8788] urllib.urlencode documentation unclear on doseq

2010-05-22 Thread Jeroen Habraken

New submission from Jeroen Habraken vexoc...@gmail.com:

The urllib.urlencode documentation is unclear with regard to the 'doseq' 
option. In my opinion it does not clearly state what its functionality is.

--
assignee: d...@python
components: Documentation
messages: 106311
nosy: VeXocide, d...@python
priority: normal
severity: normal
status: open
title: urllib.urlencode documentation unclear on doseq

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



[issue8788] urllib.urlencode documentation unclear on doseq

2010-05-22 Thread Jeroen Habraken

Jeroen Habraken vexoc...@gmail.com added the comment:

An elaboration as requested on IRC: It appears to make claims about 'the 
sequence', but doesn't make clear that 'doseq' matters when *v* is a sequence. 
It is easy to assume it refers to the query sequence, which is of course always 
a sequence.

--

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



[issue8016] Support for cp858

2010-05-22 Thread Tim Hatch

Tim Hatch t...@timhatch.com added the comment:

I also noticed that libforensics supplies a codec for cp858, if that's helpful 
to double-check the implementation. 
http://code.google.com/p/libforensics/source/browse/code/lf/win/codepage/cp858.py

--

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



[issue4769] b64decode should accept strings or bytes

2010-05-22 Thread Dan Buch

Dan Buch daniel.b...@gmail.com added the comment:

@haypo - what patch? :)

--

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



[issue4769] b64decode should accept strings or bytes

2010-05-22 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

This one!

--
keywords: +patch
Added file: http://bugs.python.org/file17441/base64_main.patch

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



[issue6268] Seeking to the beginning of a text file a second time will return the BOM as first character

2010-05-22 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Fixed: 2.7 (r81459), 2.6 (r81460), 3.2 (r81461), 3.1 (r81462).

This fix doesn't work on Windows nor Solaris: it uses wt+ file mode, whereas 
t in invalid on these OS  (does t mode really exist?).

While fixing this bug, I noticed two other bugs (in StreamWriter). All bugs 
should be fixed by a new commit: 2.7 (r81471+r81472), 2.6 (r81473), 3.2 
(r81474), 3.1 (r81475).

--

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



[issue8789] See Hamster on your Google homepage

2010-05-22 Thread reynaldo

New submission from reynaldo renbe...@gmail.com:

Your friend, renbe...@gmail.com, has sent you the following Google Gadget.

See Hamster on your Google homepage »

screenshot

--
files: unnamed
messages: 106317
nosy: renben
priority: normal
severity: normal
status: open
title: See Hamster on your Google homepage
Added file: http://bugs.python.org/file17442/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8789
___Your friend, renbe...@gmail.com, has sent you the following Google 
Gadget.br/br/div style=font-size:largeba 
href=http://www.google.com/ig/adde?moduleurl=http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.xmlsource=imag;See
 Hamster on your Google homepage raquo;/a/b/divbr/br/img 
style=border:1px solid #000;padding:12px 
src=http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.png;
 alt=screenshot___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8790] See Hamster on your Google homepage

2010-05-22 Thread reynaldo

New submission from reynaldo renbe...@gmail.com:

Your friend, renbe...@gmail.com, has sent you the following Google Gadget.

See Hamster on your Google homepage »

screenshot

--
files: unnamed
messages: 106318
nosy: renben
priority: normal
severity: normal
status: open
title: See Hamster on your Google homepage
Added file: http://bugs.python.org/file17443/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8790
___Your friend, renbe...@gmail.com, has sent you the following Google 
Gadget.br/br/div style=font-size:largeba 
href=http://www.google.com/ig/adde?moduleurl=http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.xmlsource=imag;See
 Hamster on your Google homepage raquo;/a/b/divbr/br/img 
style=border:1px solid #000;padding:12px 
src=http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.png;
 alt=screenshot___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8791] See Hamster on your Google homepage

2010-05-22 Thread reynaldo

New submission from reynaldo renbe...@gmail.com:

Your friend, renbe...@gmail.com, has sent you the following Google Gadget.

See Hamster on your Google homepage »

screenshot

--
files: unnamed
messages: 106319
nosy: renben
priority: normal
severity: normal
status: open
title: See Hamster on your Google homepage
Added file: http://bugs.python.org/file17444/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8791
___Your friend, renbe...@gmail.com, has sent you the following Google 
Gadget.br/br/div style=font-size:largeba 
href=http://www.google.com/ig/adde?moduleurl=http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.xmlsource=imag;See
 Hamster on your Google homepage raquo;/a/b/divbr/br/img 
style=border:1px solid #000;padding:12px 
src=http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/hamster.png;
 alt=screenshot___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8789] See Hamster on your Google homepage

2010-05-22 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution:  - invalid
status: open - closed

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



[issue8791] See Hamster on your Google homepage

2010-05-22 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution:  - invalid
status: open - closed

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



[issue8790] See Hamster on your Google homepage

2010-05-22 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution:  - invalid
status: open - closed

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



[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Thanks for catching the doc typo!  Actually, I didn't like that doc addition 
anyway, so I rewrote it.

Committed in r81476.

--
resolution:  - accepted
status: open - closed

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



[issue7355] Struct incorrectly compiles format strings

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Doc changes merged in r81477 (release26-maint) and r81480 (release31-maint).

--
resolution:  - fixed
status: open - closed

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



[issue8789] See Hamster on your Google homepage

2010-05-22 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--

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



[issue8789] See Hamster on your Google homepage

2010-05-22 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


Removed file: http://bugs.python.org/file17442/unnamed

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



[issue8790] See Hamster on your Google homepage

2010-05-22 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--

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



[issue8790] See Hamster on your Google homepage

2010-05-22 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


Removed file: http://bugs.python.org/file17443/unnamed

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



[issue8791] See Hamster on your Google homepage

2010-05-22 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--

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



[issue8791] See Hamster on your Google homepage

2010-05-22 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


Removed file: http://bugs.python.org/file17444/unnamed

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



[issue8792] xmlrpclib compatibility issues with Apache XML-RPC library

2010-05-22 Thread Attila Nagy

New submission from Attila Nagy b...@fsn.hu:

When talking to an Apache XML-RPC library based application via python 2.6.5 
xmlrpclib, I get this exception:
Traceback (most recent call last):
  File prb.py, line 4, in module
proxy.catv.getEndpointIdByIp('1.1.1.1')
  File /tmp/Python-2.6.5/Lib/xmlrpclib.py, line 1199, in __call__
return self.__send(self.__name, args)
  File /tmp/Python-2.6.5/Lib/xmlrpclib.py, line 1491, in __request
verbose=self.__verbose
  File /tmp/Python-2.6.5/Lib/xmlrpclib.py, line 1253, in request
return self._parse_response(h.getfile(), sock)
  File /tmp/Python-2.6.5/Lib/xmlrpclib.py, line 1389, in _parse_response
p.feed(response)
  File /tmp/Python-2.6.5/Lib/xmlrpclib.py, line 601, in feed
self._parser.Parse(data, 0)
  File /tmp/Python-2.6.5/Lib/xmlrpclib.py, line 868, in end
return f(self, join(self._data, ))
  File /tmp/Python-2.6.5/Lib/xmlrpclib.py, line 935, in end_struct
dict[_stringify(items[i])] = items[i+1]
IndexError: list index out of range

The exception is caused by the XML response, which includes a value with 
ex:i8 type. According to this: http://ws.apache.org/xmlrpc/types.html, there 
are a lot more types, which are not understood by python's xmlrpclib.

It's easy to fix the above by adding ex:i8 to the list of end_int dispatcher:
def end_int(self, data):
self.append(int(data))
self._value = 0
dispatch[i4] = end_int
dispatch[i8] = end_int
dispatch[ex:i8] = end_int
dispatch[int] = end_int

This makes the error disappear (and the program to work).
Of course, it would be nice to support all other types as well (in both 
directions).

--
components: XML
messages: 106322
nosy: bra
priority: normal
severity: normal
status: open
title: xmlrpclib compatibility issues with Apache XML-RPC library
type: behavior
versions: Python 2.6

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



[issue5639] Support TLS SNI extension in ssl module

2010-05-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

The patch probably needs refreshing now that first SSL contexts are in.

I wonder whether a combined boolean/string flag is really the best solution.

I think we could instead enable SNI by default and add an optional 
server_hostname to set the hostname to SSLContext.wrap_socket(), so that 
people can explicitly set the hostname; and otherwise take it, if possible, 
from the argument given to connect().

We can also add an enable_sni attribute to SSLContext (True by default) to 
allow selective disabling. This attribute would raise an exception if SNI 
support isn't available, which would be a way to test for it.

--
nosy: +giampaolo.rodola

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



[issue5639] Support TLS SNI extension in ssl module

2010-05-22 Thread Jean-Paul Calderone

Jean-Paul Calderone exar...@twistedmatrix.com added the comment:

Here's another possible approach:

ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
ctx.set_tlsext_host_name(foo.bar)
skt = ctx.wrap_socket(socket.socket())
skt.connect(bar.baz)

This makes it obvious what the SNI hostname is and what the TCP address to 
connect to is, and they can easily be different.

--
nosy: +exarkun

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



[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Thinking ahead a bit:  at some point we might well also want functions to pack 
and unpack these IEEE formats into byte sequences, using the bit 
representations described in the standard.

A natural place for those functions would be as methods on a Context object;  
perhaps IEEEContext should be a subclass of Context?  (OTOH, the struct module 
is another possible place for such functionality.)

I'll think about this.

--

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



[issue6900] Sub-optimal Locate button behaviour in Windows CHM file

2010-05-22 Thread Tom Seddon

Tom Seddon bugs.python@tomseddon.plus.com added the comment:

Yes, this new version looks to do the job!

(Regarding the CSS, I'm not so sure about the serifs yet, but I'll let it sink 
in and see how I feel :)

--

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