On Thu, Mar 2, 2023 at 9:56 PM Alan Bawden wrote:
>
> jose isaias cabrera writes:
>
>On Thu, Mar 2, 2023 at 2:38 PM Mats Wichmann wrote:
>
>This re is a bit different than the one I am used. So, I am trying to match
>everything after 'pn=':
>
>import r
ject manager. pn=project name. I needed search()
rather than match().
>
> >>> s = "pn=jose pn=2017"
> ...
> >>> s0 = r0.match(s)
> >>> s0
>
>
>
>
> -Original Message-
> From: Python-list On
> Behalf Of jose isaias cab
On Thu, Mar 2, 2023 at 8:30 PM Cameron Simpson wrote:
>
> On 02Mar2023 20:06, jose isaias cabrera wrote:
> >This re is a bit different than the one I am used. So, I am trying to
> >match
> >everything after 'pn=':
> >
> >import re
> >s = "pm=jose pn
On Thu, Mar 2, 2023 at 2:38 PM Mats Wichmann wrote:
>
> On 3/2/23 12:28, Chris Angelico wrote:
> > On Fri, 3 Mar 2023 at 06:24, jose isaias cabrera
wrote:
> >>
> >> Greetings.
> >>
> >> For the RegExp Gurus, consider the following python3 code:
&g
On Thu, Mar 2, 2023 at 2:32 PM <2qdxy4rzwzuui...@potatochowder.com> wrote:
>
> On 2023-03-02 at 14:22:41 -0500,
> jose isaias cabrera wrote:
>
> > For the RegExp Gurus, consider the following python3 code:
> >
> > import re
> > s = "pn=alig
Greetings.
For the RegExp Gurus, consider the following python3 code:
import re
s = "pn=align upgrade sd=2023-02-"
ro = re.compile(r"pn=(.+) ")
r0=ro.match(s)
>>> print(r0.group(1))
align upgrade
This is wrong. It should be 'align' because the group only goes up-to
the space. Thoughts? Thanks.
On Tue, Feb 14, 2023 at 8:55 PM Thomas Passin wrote:
>
> On 2/14/2023 3:30 PM, jose isaias cabrera wrote:
> > Greetings.
> >
> > I have tried both Cygwin and SQLite support, and I have received very
> > little ideas from them, so I am trying this to see if anyone has
On Tue, Feb 14, 2023 at 8:55 PM Thomas Passin wrote:
>
> As a point of reference, the Python installation I've got on my Windows
> box (not a cygwin install) is
>
> Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934
> 64 bit (AMD64)] on win32
>
> and the sqlite_version is
Greetings.
I have tried both Cygwin and SQLite support, and I have received very
little ideas from them, so I am trying this to see if anyone has dealt
with such a problem before.
If I use Cygwin setup tool and install python39 and thus,
$ python
Python 3.9.10 (main, Jan 20 2022, 21:37:52) [GCC
Ok, so this,
buffer[0] = (byte)Integer.parseInt(string,16);
in java is, partly, this
buffer[0] = int(string, 16)
in python. But here is my problem. When I call this java subroutine,
byte[] decodeKey(String inString)
{
if (inString == null)
return null;
Greetings!
I've looked through the internet (not long, though) but I have not been able
to find a python translation to
buffer[0] = (byte)Integer.parseInt(string,16);
Has anyone ported any java programs to python and has translated this?
any help would be greatly appreciated.
thanks.
josé
--
Yes, that's my problem. I don't want to go through the java stuff. :-)
Thanks.
- Original Message -
From: Bill Mill [EMAIL PROTECTED]
To: jose isaias cabrera [EMAIL PROTECTED]
Cc: python-list@python.org
Sent: Monday, January 31, 2005 7:28 PM
Subject: Re: Java Integer.ParseInt translation
thanks everyone...!
- Original Message -
From: ech0 [EMAIL PROTECTED]
Newsgroups: comp.lang.python
To: python-list@python.org
Sent: Monday, January 31, 2005 7:27 PM
Subject: Re: Java Integer.ParseInt translation to python
buffer[0] = int(string,16) 0xff
that should work
--
13 matches
Mail list logo