[Proposed Fix]
Modify regex patterns in /usr/bin/py to use raw strings:
- Before: 'np(\..*)?$'
- After:  r'np(\..*)?$'

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python3-defaults in
Ubuntu.
https://bugs.launchpad.net/bugs/2106752

Title:
  run py '9 * 2' in terminal show SyntaxWarning

Status in python3-defaults package in Ubuntu:
  New

Bug description:
  [Steps to Reproduce]
  1. Install pythonpy on Ubuntu 24.04.02 LTS
  2. Run: py '3*1.5'

  [Expected Result]
  Only output "4.5" without warnings.

  [Actual Result]
  Output includes SyntaxWarning:
  /usr/bin/py:29: SyntaxWarning: invalid escape sequence '\.'

  [Affected Files]
  /usr/bin/py (lines 29, 31)

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: python3 3.12.3-0ubuntu2
  ProcVersionSignature: Ubuntu 6.11.0-21.21~24.04.1-generic 6.11.11
  Uname: Linux 6.11.0-21-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.28.1-0ubuntu3.5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Apr 10 23:59:11 2025
  InstallationDate: Installed on 2025-04-07 (3 days ago)
  InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 
(20250215)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: python3-defaults
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2106752/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to