Re: hex int and string

2009-11-27 Thread jessica
On 11月27日, 下午4时54分, luca72 wrote: > hello i have a problem > > i have this > > str = 'D3' > and i need to trasform in 0xd3 type int and not type string how i can > do this? > if i do > hex(int(str,16) ) i obtain a string and this is not what i need. > > thanks Luca http://www.mbthome.net/ mbt sho

Re: hex int and string

2009-11-27 Thread jessica
On 11月27日, 下午5时35分, "84715...@qq.com" <84715...@qq.com> wrote: > On 11月27日, 下午5时28分, luca72 wrote: > > > > > i'm using pyscard > > > and for send a command he need a list like this: > > > cmd = [0xdd,0xff, etc] > > > the problem is that i get a text > > like dd > > and i need to trasform it in 0xd

Re: delete column content

2009-11-30 Thread jessica
On 11月30日, 上午2时27分, "Diez B. Roggisch" wrote: > Francesco Pietra schrieb: > > > Hi: > > How to replace with blank the single-character in column 21 of a pdb > > file (in pdb numbering it is column 22). Attached is an incomplete > > exercise with slices. I am unable to get real plain text with gmai

Re: delete column content

2009-11-30 Thread jessica
On 11月30日, 上午2时12分, Francesco Pietra wrote: > Hi: > How to replace with blank the single-character in column 21 of a pdb > file (in pdb numbering it is column 22). Attached is an incomplete > exercise with slices. I am unable to get real plain text with gmail. > > Thanks for help > > francesco pie

Re: delete column content

2009-11-30 Thread jessica
On 11月30日, 上午2时48分, Vlastimil Brom wrote: > 2009/11/29 Francesco Pietra : > > > Hi: > > How to replace with blank the single-character in column 21 of a pdb > > file (in pdb numbering it is column 22). Attached is an incomplete > > exercise with slices. I am unable to get real plain text with gmai

Re: hex int and string

2009-11-30 Thread jessica
On 11月27日, 下午6时59分, Marco Mariani wrote: > Ben Finney wrote: > >> i'm using pyscard > > > I don't know what that is; can you give a link to what you're referring > > to? > > Simple story: he has seen the examples with hex literals and didn't know > what they were. http://www.mbthome.net/ mbt shoe

Re: hex int and string

2009-11-30 Thread jessica
On 11月28日, 上午11时41分, "84715...@qq.com" <84715...@qq.com> wrote: > On 11月27日, 下午4时54分, luca72 wrote: > > > hello i have a problem > > > i have this > > > str = 'D3' > > and i need to trasform in 0xd3 type int and not type string how i can > > do this? > > if i do > > hex(int(str,16) ) i obtain a st

[ANNOUNCE] Twisted 11.0.0 Released

2011-04-03 Thread Jessica McKellar
up effort. <http://twistedmatrix.com/highscores/?time=2011-03-01> is a testament to how much work was done in March alone. -Jessica -- http://mail.python.org/mailman/listinfo/python-list

Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-11 Thread Jessica Smith
ocesses but because it is weird and broken. Thanks for any help, Jessica Begin Logs: 2022-11-10T23:54:51.7272453Z Requested labels: windows-latest 2022-11-10T23:54:51.7272494Z Job defined at: NodeJSmith/wsl_home/.github/workflows/blank.yml@refs/heads/main 2022-11-10T23:54:51.7272514Z Waiti

Python 3.7+ cannot print unicode characters when output is redirected to file - is this a bug?

2022-11-13 Thread Jessica Smith
at using -x utf8 would fix this, or modifying various environment variables. But is this expected for a standard Python installation on Windows? Jessica -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange UnicodeEncodeError in Windows image on Azure DevOps and Github

2022-11-13 Thread Jessica Smith
On Fri, Nov 11, 2022 at 8:16 PM Eryk Sun wrote: > If sys.std* are console files, then in Python 3.6+, sys.std*.buffer.raw will > be _io._WindowsConsoleIO > io.TextIOWrapper uses locale.getpreferredencoding(False) as the default > encoding Thank you for your replies - checking the sys.stdout.buf

Try-except-finally paradox

2014-01-29 Thread Jessica Ross
I found something like this in a StackOverflow discussion. >>> def paradox(): ... try: ... raise Exception("Exception raised during try") ... except: ... print "Except after try" ... return True ... finally: ... print "Finally" ...

Python under the sea and in space

2014-05-06 Thread Jessica McKellar
that NASA has analyzed plenty of data from space in Python, but the analysis was done in labs here on Earth. :) Do you have some good candidates? Please let me know! Regards, -Jessica -- https://mail.python.org/mailman/listinfo/python-list

Re: I am trying to compile python 2.6.2 on my Mac

2009-07-26 Thread Jessica Smith
(self.compiler.library_dirs, '/opt/local/lib') add_dir_to_list(self.compiler.include_dirs, '/opt/local/include') - configure --prefix=/pt/p - make - make install I'm happy now! JRS On 7/26/09, Chris Rebert wrote: > On Sun, Jul 26, 2009 at 1:12 AM, Jessica R > Smith wro

I am trying to compile python 2.6.2 on my Mac

2009-07-26 Thread Jessica R Smith
Hello, I am trying to compile Python 2.6.2 on my Mac which has os/x 10.5.7 I downloaded python 2.6.2 from here: - http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2 I unpacked it. I ran these shell commands: - ./configure --prefix=/pt/p - make Near the end of the make output I se