Public bug reported:

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

** Affects: python3-defaults (Ubuntu)
     Importance: Undecided
     Assignee: alex (alexanderwang)
         Status: New


** Tags: amd64 apport-bug noble

** Changed in: ubuntu
     Assignee: (unassigned) => alex (alexanderwang)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2106752

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

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to