homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wmbrown
Recipients benjamin.peterson, jafo, jlt63, kermode, wmbrown
Date 2008年06月12日.20:49:15
SpamBayes Score 0.01029626
Marked as misclassified No
Message-id <2D82356CD8BFF34A92BFB1EC38D5BE58050F77B3@XCH-NW-3V1.nw.nos.boeing.com>
In-reply-to <1213297593.22.0.461573275082.issue2234@psf.upfronthosting.co.za>
Content
Maybe I have a problem with my test code...
--------------------
import re
def test_re(out_string):
 result = re.search('(\d+\.\d+(\.(\d+))?([ab](\d+))?)', out_string)
 print '--- msg00622 ---'
 print result.group(1)
 print result.group(2)
 print result.group(3)
 print result.group(4)
 print
if __name__ == '__main__': 
 out_string = '2.18.50.20080523'
 test_re(out_string)
 out_string = '1.2.3a'
 test_re(out_string)
 out_string = '2.18.50a.20080523'
 test_re(out_string)
Results...
--- msg00622 ---
2.18.50
.50
50
None
--- msg00622 ---
1.2.3
.3
3
None
--- msg00622 ---
2.18.50
.50
50
None
--------------------
I would expect GNU to have a standard for version strings so this
doesn't happen to EVERYONE when they deviate from the expected. 
A quick check in Google returned the following links for other
packages... 
http://publib.boulder.ibm.com/tividd/td/ITCM/SC23-4712-01/en_US/HTML/cmm
st19.htm
http://java.sun.com/j2se/versioning_naming.html
http://www.osgi.org/javadoc/r4/org/osgi/framework/Version.html
Given that, I think I prefer 1 to 2.
History
Date User Action Args
2008年06月12日 20:49:17wmbrownsetspambayes_score: 0.0102963 -> 0.01029626
recipients: + wmbrown, jlt63, jafo, kermode, benjamin.peterson
2008年06月12日 20:49:16wmbrownlinkissue2234 messages
2008年06月12日 20:49:15wmbrowncreate

AltStyle によって変換されたページ (->オリジナル) /