分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

WebSphere的jython编码的一个坑

发布时间:2023-09-06 01:54责任编辑:胡小海关键词:Web
was5.1版本,用"name=" in line这类判断字符串包含的方式时,系统会提示报错

TypeError: string member test needs char left operand

原来python早期代码,in左边必须是单个的字符,而was5.1的jython是用了python的早期版本,所以不支持更高级的语法,was8.5中也存在这问题

  • Yeah, its fairly old I believe. Its the implementation of jython that comes with WebSphere 8.5.5. Even though its the very latest release of WebSphere, it still comes with a ten year old python! – Seer Oct 3 ‘13 at 9:15
  •  
    I looked into this some more. WebSphere comes with Jython 2.1 (just type sys.version to verify). Look at SourceForge and behold, it was released in September 2002, thus why we have to deal with stupid issues from over a decade ago: sourceforge.net/projects/jython/files/jython – ArtOfWarfare Jun 3 ‘14 at 15:05

被这傻逼问题闹的怀疑自己到底会不会写python了……

参考页面:https://stackoverflow.com/questions/19140003/python-jython-if-substring-in-string-always-results-in-typeerror-string-member

WebSphere的jython编码的一个坑

原文地址:https://www.cnblogs.com/slqt/p/9056149.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved