[issue5431] cmpfunc in Python 3.0.1 windows installer

2009-03-06 Thread Nigel Galloway

New submission from Nigel Galloway :

C:\Users\Nigel\myPython\iajaar>C:\Users\Nigel\swigwin-1.3.38\swig -
c++ -python -py3  NigelzGLPK.swg

generated a C++ wrapper and a Python file. When I attempted to compile 
the wrapper against Python 3.0.1 it failed see the output log at the 
end of this message.


I decided to modify object.h from C:\Python30\include:

typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
typedef PyObject *(*reprfunc)(PyObject *);


typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
typedef int (*cmpfunc)(PyObject *, PyObject *);
typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
typedef PyObject *(*reprfunc)(PyObject *);


adding the typedef for cmpfunc. It then compiles fine, AND appears to 
work.

C:\Users\Nigel\myPython\iajaar\Python>c:\Python30\python 
sample.iajaar.3.py
* 0: obj =  0.0e+000  infeas = 0.000e+000 (0)
* 2: obj =  7.3e+002  infeas = 0.000e+000 (0)
OPTIMAL SOLUTION FOUND
Z =  733.3 ; x1 =  33.33 ; x2 =  66.67 ; x3 =  
0.0


Is this good, or should I do something else?



Compile Log:

Build Log  Rebuild started: Project: nigelzGLPK, Configuration: 
Release|Win32
 Command Lines  Creating temporary 
file "c:\Users\Nigel\Documents\Visual Studio 2008
\Projects\nigelzGLPK\nigelzGLPK\Release\RSP1137523960.rsp" with 
contents
[
/O2 /Oi /GL /I "C:\Users\Nigel\Documents\Visual Studio 2008
\Projects\glpk\include" /I "C:\Python30
\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "NIGELZG
LPK_EXPORTS" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Gy 
/Fo"Release\\" /Fd"Release\vc90.pdb" /W3 /c /Zi /TP "..\..\..\..\..\myP
ython\iajaar\NigelzGLPK_wrap.cxx"
]
Creating command line "cl.exe @"c:\Users\Nigel\Documents\Visual Studio 
2008
\Projects\nigelzGLPK\nigelzGLPK\Release\RSP1137523960.rsp" /nologo 
/errorReport:prompt"
 Output Window  Compiling...
NigelzGLPK_wrap.cxx
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1772) : error 
C2065: 'cmpfunc' : undeclared identifier
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1772) : error 
C2146: syntax error : missing '}' before 
identifier 'SwigPyObject_compare'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1772) : error 
C2146: syntax error : missing ';' before 
identifier 'SwigPyObject_compare'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1817) : error 
C2059: syntax error : '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1818) : error 
C2065: 'tmp' : undeclared identifier
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1825) : error 
C2059: syntax error : 'return'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1943) : error 
C2065: 'cmpfunc' : undeclared identifier
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1943) : error 
C2146: syntax error : missing '}' before 
identifier 'SwigPyPacked_compare'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1943) : error 
C2146: syntax error : missing ';' before 
identifier 'SwigPyPacked_compare'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1988) : error 
C2059: syntax error : '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1989) : error 
C2065: 'tmp' : undeclared identifier
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1996) : error 
C2059: syntax error : 'return'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1997) : error 
C2059: syntax error : '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1997) : error 
C2143: syntax error : missing ';' before '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(1997) : error 
C2059: syntax error : '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(2001) : error 
C2143: syntax error : missing ';' before '{'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(2001) : error 
C2447: '{' : missing function header (old-style formal list?)
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(2400) : error 
C3861: 'SwigPyPacked_New': identifier not found
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(2635) : error 
C2059: syntax error : '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(2635) : error 
C2143: syntax error : missing ';' before '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(2635) : error 
C2059: syntax error : '}'
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(2674) : error 
C2065: 'swig_types' : undeclared identifier
c:\users\nigel\mypython\iajaar\iajaar.h(59) : warning C4290: C++ 
exception specification ignored except to indicate a function is not 
__declspec(nothrow)
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(3176) : error 
C2065: 'swig_types' : undeclared identifier
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(3191) : error 
C2065: 'swig_types' : undeclared identifier
..\..\..\..\..\myPython\iajaar\NigelzGLPK_wrap.cxx(3207) : error 
C2065: '

[issue400608] just testing

2009-03-06 Thread Daniel Diniz

Daniel Diniz  added the comment:

Thanks for the feedback, Guido!

gvanrossum wrote:
> You could maintain this as a locally modified version, but a better
> approach would be to make just enough changes to upload.py itself so
> that you can write the rest of this script as a *wrapper* around
> upload.py.

Yes, a wrapper is an option. MvL suggested a patch[1] and for this
initial implementation it makes things simpler. IIUC, in this case
upload.py would need no changes, as we simply populate existing
options with fetched values.

> PS. What do you mean by "wish we could expunge the deleted ones"?  If
> you delete a Rietveld issue it is really gone.  If you merely close it,
> you can still delete it later.  But I'm probably missing something.

Yes, you're missing the fact that you were the one saying  "wish we
could expunge the deleted ones" :)

 upload.py fetched that from http://bugs.python.org/msg32813 because I
told it to:
python static/upload.py -R 400608 -F msg32813

[1] http://mail.python.org/pipermail/tracker-discuss/2009-March/001875.html

___
Python tracker 

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



[issue2771] test issue

2009-03-06 Thread Daniel Diniz

Daniel Diniz  added the comment:

http://codereview.appspot.com/24075

___
Python tracker 

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



[issue2771] test issue

2009-03-06 Thread Daniel Diniz

Daniel Diniz  added the comment:

Reviewers: ,

Description:
 From http://bugs.python.org/issue2771

"This is a very long line.  I am wondering how it will be wrapped. What
will happen to this exceedingly long line? Will it be wrapped? Will it?
Really? What will happen?

Here's an example:

   def fact(n):
 if n > 1:
   return n * fact(n-1)
 else:
   assert n in (0, 1)
   return 1

What do you think of that?"

Description fetched from: http://bugs.python.org/msg66272

Please review this at http://codereview.appspot.com/25076

Affected files:
   M static/upload.py

___
Python tracker 

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



[issue5431] cmpfunc in Python 3.0.1 windows installer

2009-03-06 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

This is not a bug in Python; apparently, SWIG hasn't been ported to
Python 3.0.1.

--
nosy: +loewis
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue5431] cmpfunc in Python 3.0.1 windows installer

2009-03-06 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

I'm sure swig was ported to python 3.0.
Is 3.0.1 allowed to break code developed with 3.0?

http://svn.python.org/view/python/branches/release30-maint/Include/object.h?r1=69215&r2=69221

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue5429] Core dumps on the Solaris buildbot

2009-03-06 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

Indeed, it crashes in

TextIOWrapper_parseCookie(cookie=0xffbfb278, cookieObj=0x27e780)
_textio.c:1739
1739cookie->start_pos = * (Py_off_t *)(buffer + OFF_START_POS);

with a call stack of

#0  0x001426bc in TextIOWrapper_parseCookie (cookie=0xffbfb278,
cookieObj=0x27e780) at _textio.c:1739
#1  0x001431f4 in TextIOWrapper_seek (self=0x545e38, args=0x70ce00)
at _textio.c:1890
#2  0x001cef10 in PyCFunction_Call (func=0x715238, arg=0x70ce00, kw=0x0)
at Objects/methodobject.c:81
...

The problem is that OFF_START_POS is 13, so the entire line produces an
unaligned access.

--
nosy: +loewis

___
Python tracker 

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



[issue5429] Core dumps on the Solaris buildbot

2009-03-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Thanks for the debugging! I'll try to produce a patch before tomorrow's
alpha release.

___
Python tracker 

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



[issue5429] Core dumps on the Solaris buildbot

2009-03-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Here is a patch. Martin, can you test it or should I commit directly?

--
keywords: +patch
Added file: http://bugs.python.org/file13255/textio_unaligned_access.patch

___
Python tracker 

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



[issue5432] plistlib contains unescaped hex sequence in doc string

2009-03-06 Thread Jim Correia

New submission from Jim Correia :

The module doc string contains an example with hex escape sequences (see 
below). They are converted to their literal values by pydoc, which 
results in an unexpected encoding for the output of pydoc.

(raw string, or proper escaping solves the problem)

Relevant chunk of the file:

anotherString="",
aUnicodeValue=u'M\xe4ssig, Ma\xdf',
aTrueValue=True,
aFalseValue=False,
),
someData = Data(""),
someMoreData = Data("" * 10),
aDate = 
datetime.datetime.fromtimestamp(time.mktime(time.gmtime())),
)
# unicode keys are possible, but a little awkward to use:
pl[u'\xc5benraa'] = "That was a unicode key."

--
components: Library (Lib)
messages: 83251
nosy: jim.correia
severity: normal
status: open
title: plistlib contains unescaped hex sequence in doc string
versions: Python 2.6

___
Python tracker 

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



[issue5425] 2to3 wrong for types.StringTypes

2009-03-06 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

> Why I considered the existing translation incorrect was because it
> translates something which was a tuple of types in Python 2.x into a
> type of Python 3.x. I fail to see how this can be useful. 

It would translate "isinstance(x, types.StringTypes)" correctly. I agree
that translating to a tuple would be correct in more cases.

___
Python tracker 

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



[issue5431] cmpfunc in Python 3.0.1 windows installer

2009-03-06 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

> I'm sure swig was ported to python 3.0.
> Is 3.0.1 allowed to break code developed with 3.0?

Of course it was! Removal of cmp support was a deliberate
breakage made in 3.0.1, see issue1717. In any case,
it isn't coming back.

___
Python tracker 

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



[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2009-03-06 Thread Gabriel Sean Farrell

Gabriel Sean Farrell  added the comment:

Now that BeautifulSoup uses HTMLParser, more people are seeing these
errors. See
http://groups.google.com/group/beautifulsoup/msg/d5a7540620538d14 and
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516824

--
nosy: +gsf

___
Python tracker 

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



[issue5429] Core dumps on the Solaris buildbot

2009-03-06 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
priority: high -> release blocker

___
Python tracker 

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



[issue5429] Core dumps on the Solaris buildbot

2009-03-06 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

I have tested it; test_cgi now passes.

___
Python tracker 

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



[issue4208] Make multiprocessing compatible with Python 2.4 and 2.5

2009-03-06 Thread Daniel Diniz

Changes by Daniel Diniz :


--
assignee:  -> jnoller
versions: +Python 2.4, Python 2.5

___
Python tracker 

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



[issue5162] multiprocessing cannot spawn child from a Windows service

2009-03-06 Thread Daniel Diniz

Changes by Daniel Diniz :


--
assignee:  -> jnoller
keywords: +patch
stage:  -> test needed

___
Python tracker 

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



[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-03-06 Thread Daniel Diniz

Changes by Daniel Diniz :


--
assignee:  -> jnoller
keywords: +patch
stage:  -> test needed

___
Python tracker 

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



[issue5400] patches for multiprocessing module on NetBSD

2009-03-06 Thread Daniel Diniz

Changes by Daniel Diniz :


--
assignee:  -> jnoller
stage:  -> test needed

___
Python tracker 

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



[issue3735] allow multiple threads to efficiently send the same requests to a processing.Pool without incurring duplicate processing

2009-03-06 Thread Daniel Diniz

Changes by Daniel Diniz :


--
assignee:  -> jnoller
stage:  -> test needed

___
Python tracker 

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



[issue5429] Core dumps on the Solaris buildbot

2009-03-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed in r70205, let's see what the buildbot says.

--
stage:  -> committed/rejected
status: open -> pending

___
Python tracker 

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



[issue5429] Core dumps on the Solaris buildbot

2009-03-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The usual Solaris test failures happened :-(, but nothing related with io-c.

--
resolution:  -> fixed
status: pending -> closed

___
Python tracker 

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



[issue5433] Excessive optimization in IncrementalNewlineDecoder

2009-03-06 Thread Antoine Pitrou

New submission from Antoine Pitrou :

This is with the io-c code:

>>> dec = io.IncrementalNewlineDecoder(None, translate=False)
>>> dec.newlines
>>> dec.decode("\u0A00")
'\u0a00'
>>> dec.newlines
'\n'

dec.newlines should have remained equal to None. It only affects the
computation of the newlines property and shouldn't produce incorrect
decoding results.

--
assignee: pitrou
components: Extension Modules
messages: 83258
nosy: pitrou
priority: high
severity: normal
stage: needs patch
status: open
title: Excessive optimization in IncrementalNewlineDecoder
type: behavior
versions: Python 3.1

___
Python tracker 

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



[issue3735] allow multiple threads to efficiently send the same requests to a processing.Pool without incurring duplicate processing

2009-03-06 Thread Jesse Noller

Jesse Noller  added the comment:

Daniel, if issues are in my queue, I can manage the state

--
keywords: +needs review

___
Python tracker 

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



[issue5433] Excessive optimization in IncrementalNewlineDecoder

2009-03-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This patch fixes the bug without incurring any significant slowdown.

--
keywords: +patch
Added file: http://bugs.python.org/file13256/issue5433.patch

___
Python tracker 

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



[issue5433] Excessive optimization in IncrementalNewlineDecoder

2009-03-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed in r70208.

--
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



[issue5394] Distutils in trunk does not work with old Python (2.3 - 2.5)

2009-03-06 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

done in r70212 and r70214

Thanks Akira !

--
status: open -> closed

___
Python tracker 

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



[issue5411] add xz compression support to distutils

2009-03-06 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Good idea !

are you able provide a unit test for the changes made into the two
commands ?

--
keywords: +patch
priority:  -> normal
stage:  -> test needed
versions: +Python 2.7, Python 3.1 -Python 2.6

___
Python tracker 

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



[issue4214] no extension debug info with msvc9compiler.py

2009-03-06 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Since I am unfamiliar with MSVC, I will need to digg on this, so if
anyone can help on this : any idea on what would be the proper fix and
why ?

--
versions: +Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue5193] Guarantee that Tkinter.Text.search returns a string

2009-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

Fixed in r70218, I will be merging into the other branches still today.

--
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



[issue4792] PythonCmd in Modules/_tkinter.c should use the given "interp" parameter

2009-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

I will be committing this but I'm afraid a test won't be added for it.
Several people told me that creating multiple tcl interpreters (even if
only one is active at some point) is problematic, specially in older tcl
versions.

So if someone can find another way to reproduce the problem you are
welcome to add a test. Ideally it would let the only tcl interpreter
created still alive (although as I see this bug you will only hit it if
a Tkapp is dealloced and then a callback created through Python is
invoked), otherwise the other existing tests will suffer.

___
Python tracker 

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



[issue4792] PythonCmd in Modules/_tkinter.c should use the given "interp" parameter

2009-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

Fixed in r70219.

___
Python tracker 

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



[issue5193] Guarantee that Tkinter.Text.search returns a string

2009-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

Merges: r70220, r70221, r70222

___
Python tracker 

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



[issue4792] PythonCmd in Modules/_tkinter.c should use the given "interp" parameter

2009-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

Merges: r70220, r70221, r70222

--
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



[issue2638] tkSimpleDialog Window Flashing

2009-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

Fixed in r70223 and r70225.

Thanks for reporting.

--
resolution: accepted -> fixed
status: open -> closed
versions:  -Python 3.0

___
Python tracker 

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-06 Thread Matthew Barnett

Matthew Barnett  added the comment:

issue2636-features-6.diff includes:

Bugfixes
Added group access via subscripting.

>>> m = re.search("(\D*)(?\d+)(\D*)", "abc123def")
>>> len(m)
4
>>> m[0]
'abc123def'
>>> m[1]
'abc'
>>> m[2]
'123'
>>> m[3]
'def'
>>> m[1 : 4]
('abc', '123', 'def')
>>> m[ : ]
('abc123def', 'abc', '123', 'def')
>>> m["number"]
'123'

Added file: http://bugs.python.org/file13257/issue2636-features-6.diff

___
Python tracker 

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



[issue5434] datetime.MonthDelta

2009-03-06 Thread Jess Austin

New submission from Jess Austin :

datetime is a wonderful module.  Perhaps the only inconvenient aspect of
using it is dealing with month calculations and comparisons.  This patch
adds a simple class, monthdelta, which represents date offsets in terms
of months.  It supports basic integer-like arithmetic, and also it may
be added to dates and datetimes.  It deals sensibly with leap-year and
month-length issues.  Also provided is a function, monthmod (named by
imperfect analogy to divmod), which allows round-tripping: that is,
taking 2 dates and returning a (monthdelta, timedelta) tuple that
represents the interim between the dates.

Note: I have named the class "monthdelta", but in light of recent
python-dev discussions I should probably rename this to "MonthDelta".

--
components: Library (Lib)
messages: 83272
nosy: jess.austin
severity: normal
status: open
title: datetime.MonthDelta
type: feature request
versions: Python 3.1

___
Python tracker 

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



[issue5434] datetime.MonthDelta

2009-03-06 Thread Jess Austin

Jess Austin  added the comment:

This is my first try at a patch.  All functionality, tests, and
documentation are included, but I won't be surprised if I need to make
some changes!  Please let me know.

--
keywords: +patch
Added file: http://bugs.python.org/file13258/datetimemodule.diff

___
Python tracker 

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



[issue5435] test_httpservers on Debian Testing

2009-03-06 Thread Michael Zamot

New submission from Michael Zamot :

Hi, im trying to compile Python 3.0.1 under Debian Testing, and i get an
error in the step make test. 
test_https fails with errno 13. The atach file has the full output.
So, what is missing in my computer or what i need to do, to compile it,
thanks and sorry for my english.

--
components: None
files: bug.txt
messages: 83274
nosy: zamotcr
severity: normal
status: open
title: test_httpservers on Debian Testing
type: compile error
versions: Python 3.0
Added file: http://bugs.python.org/file13259/bug.txt

___
Python tracker 

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



[issue5434] datetime.MonthDelta

2009-03-06 Thread Jess Austin

Jess Austin  added the comment:

Rietveld link: http://codereview.appspot.com/25079

___
Python tracker 

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