f



Altering 2 statements from Python 2.6 => 3.2

Hello folks,

With what do i need to replace:
-----------
print ( "Query Error: ", sys.exc_info()[1].excepinfo()[2] )
---------

and

----------
date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8')
----------
in Python3? because in 2.6 used to work but they dont in Pytho 3

thank you.
0
nikos.gr33k (972)
3/27/2013 8:18:47 PM
comp.lang.python 77058 articles. 6 followers. Post Follow

8 Replies
472 Views

Similar Articles

[PageSpeed] 58

On Thu, Mar 28, 2013 at 7:18 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos.gr33=
k@gmail.com> wrote:
> date =3D date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8')

For a start, figure out what you're trying to do. I'm trying to get my
head around this line and I'm not getting anywhere. Is 'date' an
instance of datetime.date()? And whatever it is, why do you then
immediately rebind it? And why decode an arbitrary string using an
arbitrary encoding? And why.... never mind. Start here:

http://www.joelonsoftware.com/articles/Unicode.html

One of Python 3's big features is that it forces you to distinguish
text strings from binary ones.

ChrisA
0
rosuav (4324)
3/27/2013 10:55:11 PM
=D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 12:55:11 =F0.=EC. =
UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5:
> On Thu, Mar 28, 2013 at 7:18 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos.gr=
33k@gmail.com> wrote:
>=20
> > date =3D date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8')
>=20
>=20
>=20
> For a start, figure out what you're trying to do. I'm trying to get my
>=20
> head around this line and I'm not getting anywhere. Is 'date' an
>=20
> instance of datetime.date()? And whatever it is, why do you then
>=20
> immediately rebind it? And why decode an arbitrary string using an
>=20
> arbitrary encoding? And why.... never mind. Start here:
>=20
>=20
>=20
> http://www.joelonsoftware.com/articles/Unicode.html
>=20
>=20
>=20
> One of Python 3's big features is that it forces you to distinguish
>=20
> text strings from binary ones.
>=20
>=20
>=20
> ChrisA


I had to use it like that in order for date to be appear correctly in greek=
 otherwise it would seem like chinese.

So now you mena i dont have to decode anym ore and use it liek that?

date =3D date.strftime('%A, %e %b %Y').encode('utf8')
0
nikos.gr33k (972)
3/28/2013 2:16:00 AM
=D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 12:55:11 =F0.=EC. =
UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5:
> On Thu, Mar 28, 2013 at 7:18 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos.gr=
33k@gmail.com> wrote:
>=20
> > date =3D date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8')
>=20
>=20
>=20
> For a start, figure out what you're trying to do. I'm trying to get my
>=20
> head around this line and I'm not getting anywhere. Is 'date' an
>=20
> instance of datetime.date()? And whatever it is, why do you then
>=20
> immediately rebind it? And why decode an arbitrary string using an
>=20
> arbitrary encoding? And why.... never mind. Start here:
>=20
>=20
>=20
> http://www.joelonsoftware.com/articles/Unicode.html
>=20
>=20
>=20
> One of Python 3's big features is that it forces you to distinguish
>=20
> text strings from binary ones.
>=20
>=20
>=20
> ChrisA


I had to use it like that in order for date to be appear correctly in greek=
 otherwise it would seem like chinese.

So now you mena i dont have to decode anym ore and use it liek that?

date =3D date.strftime('%A, %e %b %Y').encode('utf8')
0
nikos.gr33k (972)
3/28/2013 2:16:00 AM
On Thu, Mar 28, 2013 at 1:16 PM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos.gr33=
k@gmail.com> wrote:
> =D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 12:55:11 =F0.=EC=
.. UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5:
>> On Thu, Mar 28, 2013 at 7:18 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos.g=
r33k@gmail.com> wrote:
>>
>> > date =3D date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8')
>>
>>
>>
>> For a start, figure out what you're trying to do. I'm trying to get my
>>
>> head around this line and I'm not getting anywhere. Is 'date' an
>>
>> instance of datetime.date()? And whatever it is, why do you then
>>
>> immediately rebind it? And why decode an arbitrary string using an
>>
>> arbitrary encoding? And why.... never mind. Start here:
>>
>>
>>
>> http://www.joelonsoftware.com/articles/Unicode.html
>>
>>
>>
>> One of Python 3's big features is that it forces you to distinguish
>>
>> text strings from binary ones.
>>
>>
>>
>> ChrisA
>
>
> I had to use it like that in order for date to be appear correctly in gre=
ek otherwise it would seem like chinese.
>
> So now you mena i dont have to decode anym ore and use it liek that?
>
> date =3D date.strftime('%A, %e %b %Y').encode('utf8')

I mena, or mean, that you have to figure out what you're doing before
you try to figure out how to do it.

Or if you want help, then try providing context, like what data type 'date'=
 is.

(And inb4 someone points out that "it's a date, duh". :) )

ChrisA
0
rosuav (4324)
3/28/2013 2:28:04 AM
=D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 4:28:04 =F0.=EC. U=
TC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5:
> On Thu, Mar 28, 2013 at 1:16 PM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos.gr=
33k@gmail.com> wrote:
>=20
> > =D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 12:55:11 =F0.=
=EC. UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5:
>=20
> >> On Thu, Mar 28, 2013 at 7:18 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos=
..gr33k@gmail.com> wrote:
>=20
> >>
>=20
> >> > date =3D date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8=
')
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> For a start, figure out what you're trying to do. I'm trying to get my
>=20
> >>
>=20
> >> head around this line and I'm not getting anywhere. Is 'date' an
>=20
> >>
>=20
> >> instance of datetime.date()? And whatever it is, why do you then
>=20
> >>
>=20
> >> immediately rebind it? And why decode an arbitrary string using an
>=20
> >>
>=20
> >> arbitrary encoding? And why.... never mind. Start here:
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> http://www.joelonsoftware.com/articles/Unicode.html
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> One of Python 3's big features is that it forces you to distinguish
>=20
> >>
>=20
> >> text strings from binary ones.
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> ChrisA
>=20
> >
>=20
> >
>=20
> > I had to use it like that in order for date to be appear correctly in g=
reek otherwise it would seem like chinese.
>=20
> >
>=20
> > So now you mena i dont have to decode anym ore and use it liek that?
>=20
> >
>=20
> > date =3D date.strftime('%A, %e %b %Y').encode('utf8')
>=20
>=20
>=20
> I mena, or mean, that you have to figure out what you're doing before
>=20
> you try to figure out how to do it.
>=20
>=20
>=20
> Or if you want help, then try providing context, like what data type 'dat=
e' is.

I'am just tryign to print the date with proper greek letters as it uses to =
work with Python v2.6

date gets calculated here:

date =3D ( datetime.utcnow() + timedelta(hours=3D2) ).strftime( '%y-%m-%d %=
H:%M:%S' )

I'am not sure but i believe that the decode must be taken out in python 3.x=
 because objexts returned in unicoide now, but i'am not sure.
0
nikos.gr33k (972)
3/28/2013 2:39:33 AM
=D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 4:28:04 =F0.=EC. U=
TC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5:
> On Thu, Mar 28, 2013 at 1:16 PM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos.gr=
33k@gmail.com> wrote:
>=20
> > =D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 12:55:11 =F0.=
=EC. UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5:
>=20
> >> On Thu, Mar 28, 2013 at 7:18 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA <nikos=
..gr33k@gmail.com> wrote:
>=20
> >>
>=20
> >> > date =3D date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8=
')
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> For a start, figure out what you're trying to do. I'm trying to get my
>=20
> >>
>=20
> >> head around this line and I'm not getting anywhere. Is 'date' an
>=20
> >>
>=20
> >> instance of datetime.date()? And whatever it is, why do you then
>=20
> >>
>=20
> >> immediately rebind it? And why decode an arbitrary string using an
>=20
> >>
>=20
> >> arbitrary encoding? And why.... never mind. Start here:
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> http://www.joelonsoftware.com/articles/Unicode.html
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> One of Python 3's big features is that it forces you to distinguish
>=20
> >>
>=20
> >> text strings from binary ones.
>=20
> >>
>=20
> >>
>=20
> >>
>=20
> >> ChrisA
>=20
> >
>=20
> >
>=20
> > I had to use it like that in order for date to be appear correctly in g=
reek otherwise it would seem like chinese.
>=20
> >
>=20
> > So now you mena i dont have to decode anym ore and use it liek that?
>=20
> >
>=20
> > date =3D date.strftime('%A, %e %b %Y').encode('utf8')
>=20
>=20
>=20
> I mena, or mean, that you have to figure out what you're doing before
>=20
> you try to figure out how to do it.
>=20
>=20
>=20
> Or if you want help, then try providing context, like what data type 'dat=
e' is.

I'am just tryign to print the date with proper greek letters as it uses to =
work with Python v2.6

date gets calculated here:

date =3D ( datetime.utcnow() + timedelta(hours=3D2) ).strftime( '%y-%m-%d %=
H:%M:%S' )

I'am not sure but i believe that the decode must be taken out in python 3.x=
 because objexts returned in unicoide now, but i'am not sure.
0
nikos.gr33k (972)
3/28/2013 2:39:33 AM
I'am just tryign to print the date with proper greek letters as it uses to work with Python v2.6 

date gets calculated here: 

date = ( datetime.utcnow() + timedelta(hours=2) ).strftime( '%y-%m-%d %H:%M:%S' ) 

I'am not sure but i believe that the decode must be taken out in python 3.x because objexts returned in unicoide now, but i'am not sure. 
0
nikos.gr33k (972)
3/28/2013 9:43:50 AM
I'am just tryign to print the date with proper greek letters as it uses to work with Python v2.6 

date gets calculated here: 

date = ( datetime.utcnow() + timedelta(hours=2) ).strftime( '%y-%m-%d %H:%M:%S' ) 

I'am not sure but i believe that the decode must be taken out in python 3.x because objexts returned in unicoide now, but i'am not sure. 
0
nikos.gr33k (972)
3/28/2013 9:43:50 AM
Reply:

Similar Artilces:

urlopen differences between python 2.3.3 and python 2.2???
I am using the code below and it works correctly on python2.2 but gives me a 404 not found error when running on python2.3.3. Is there some difference? Maybe python 2.3.3 is sending different headers? The params string looks to be encoded identically, so must be something with urlopen. Does anyone have any suggestions to get this working from python2.3.3?? Thanks in advance! import httplib,urllib def signup(self, REQUEST): """ Allows us to automatically sign-up a user. """ email = REQUEST['Email'] first_name = REQUEST['First...

python 2.5.2 or Python 2.6 compilation problem on AIX 5.3
Hello: I am trying to compile Python 2.5.2 on AIX 5.3 with gcc 4.2.3. I am getting following error. (I also tried Python 2.6 with same error) creating build/temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/ Modules gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -I. -I/share/tmhsdsd2/tmp/Python-2.5.2/./Include - I. -IInclude -I./Include -I/usr/local/include -I/share/tmhsdsd2/tmp/ Python-2.5.2/Include -I/share/tmhsdsd2/tmp/Python-2.5.2 -c /share/ tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.c -o build/temp.aix-5.3-2.5/ share/tmhsdsd2/tmp/Python-2.5.2/Modules/_...

Python 2.0 / Python 2.2
Hallo newsgroup, I have some questions concerning Python 2.2. First question: I try to port source code from Python 2.0 to Python 2.2.The following source code works with Python 2.0. If I compile it with Python 2.2, the modul "tci" is not imported. "tci" is a python module written by us. How can I change the source code to get it working with Python 2.2.? Py_Initialize(); PyStr = Py_BuildValue("s", TCIHome); PyModule = PyImport_ImportModule("sys"); PyList = PyObject_GetAttrString(PyModule, "path"); PyList_Insert(PyList, 0, PyStr); if (PyEr...

PB with Python ActiveX Scripting Engine registration (Python 2.2.3/2.3)
I execute the Python program win32com\axscript\client\pyscript_rexec.py and the engine is successfully registered But the python engine isn't active in IE (tested with demo.htm, even after a reboot) I did not have probleme with Python 2.1 and win32all-151 The path of win32com have changed ( now in python 2.2 we have the directory "site-packages" in more) is-it a way??? Thanks for your help PS/ Same probleme with W2K and XP GE wrote: > I execute the Python program win32com\axscript\client\pyscript_rexec.py and > the engine is successfully registered But the python ...

[RELEASED] Release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
We're pleased to announce the immediate availability of release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 . The main impetus for these releases is fixing a security issue in Python's hash based types, dict and set, as described below. Python 2.7.3 and 3.2.3 include the security patch and the normal set of bug fixes. Since Python 2.6 and 3.1 are maintained only for security issues, 2.6.8 and 3.1.5 contain only various security patches. The security issue exploits Python's dict and set implementations. Carefully crafted input can lead to extremely long computation times a...

[RELEASED] Release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
We're pleased to announce the immediate availability of release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 . The main impetus for these releases is fixing a security issue in Python's hash based types, dict and set, as described below. Python 2.7.3 and 3.2.3 include the security patch and the normal set of bug fixes. Since Python 2.6 and 3.1 are maintained only for security issues, 2.6.8 and 3.1.5 contain only various security patches. The security issue exploits Python's dict and set implementations. Carefully crafted input can lead to extremely long computation times and denials of service. [1] Python dict and set types use hash tables to provide amortized constant time operations. Hash tables require a well-distributed hash function to spread data evenly across the hash table. The security issue is that an attacker could compute thousands of keys with colliding hashes; this causes quadratic algorithmic complexity when the hash table is constructed. To alleviate the problem, the new releases add randomization to the hashing of Python's string types (bytes/str in Python 3 and str/unicode in Python 2), datetime.date, and datetime.datetime. This prevents an attacker from computing colliding keys of these types without access to the Python process. Hash randomization causes the iteration order of dicts and sets to be unpredictable and differ across Python runs. Python has never guaranteed iteration order of keys in a dict or set,...

AIX + GCC 2.95.3 - Python (2.1 or 2.2) - building the shared library (.so) for python
Hi all, (If I use standard -shared linking, during the _import python is crashing.) As seen in in AIX-NOTES there should be used ld_so_aix. But I suspect that it was prepared for standard xlC (CC) compiler. How to make it running for GCC compiler? Now I receive following error: gcc -Wl,-einitlib.a -Wl,-bE:lib.a.exp -Wl,-bI:./python.exp -Wl,-bhalt:4 -Wl,-bM: SRE -Wl,-T512 -Wl,-H512 -lm -o lib.a. -shared -Wl,-bbigtoc -L../../../../lib/pow erpc_aix_4.3_gcc -L/users/tbech/ND/Python/usr/local/lib/python2.1/config python. exp y.tab.o lex.yy.o idlerr.o idlutil.o idltype.o idlrepoId.o idlscope.o idlexpr ..o idlast.o idlvalidate.o idldump.o idlconfig.o idlfixed.o idlpython.o ld: 0711-418 ERROR: Import or export file lib.a.exp at line 10: A symbol name may only be followed by an export attribute or an address. The line is being ignored. When I remove this line 10 from lib.a.exp it is telling that several Py* functions are not exported and that entry point initlib.a not found. Additional questions: 1. Why is such nonuderstandable-ultimate-tricky solution prepared for AIX? 2. Does it work only for xlC (CC) or also for GCC? If, how to do it? 3. What is the entry point function? How I can find it in the sources? 4. Seems that makexp_aix wrongly makes exports :( Thanks in advance, Tom hab <hab@polbox.com> writes: > (If I use standard -shared linking, during the _import python is crashing.) > As seen in in AIX-NOTES there should be used ld_so_aix...

[RELEASED] Second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
We're chuffed to announce the immediate availability of the second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3. The only change from the first release candidates is the patching of an additional security hole. The security issue fixed in the second release candidates is in the expat XML parsing library. expat had the same hash security issue detailed below as Python's core types. The hashing algorithm used in the expat library is now randomized. A more thorough explanation of the "hash attack" security hole follows. The main impetus for these releases is fi...

[RELEASED] Second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
We're chuffed to announce the immediate availability of the second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3. The only change from the first release candidates is the patching of an additional security hole. The security issue fixed in the second release candidates is in the expat XML parsing library. expat had the same hash security issue detailed below as Python's core types. The hashing algorithm used in the expat library is now randomized. A more thorough explanation of the "hash attack" security hole follows. The main impetus for these releases is fixing a security issue in Python's hash based types, dict and set, as described below. Python 2.7.3 and 3.2.3 include the security patch and the normal set of bug fixes. Since Python 2.6 and 3.1 are maintained only for security issues, 2.6.8 and 3.1.5 contain only various security patches. The security issue exploits Python's dict and set implementations. Carefully crafted input can lead to extremely long computation times and denials of service. [1] Python dict and set types use hash tables to provide amortized constant time operations. Hash tables require a well-distributed hash function to spread data evenly across the hash table. The security issue is that an attacker could compute thousands of keys with colliding hashes; this causes quadratic algorithmic complexity when the hash table is constructed. To alleviate the problem, the new releases add rando...

Importing Python 2.3 datetime lib into Python 2.2
Hi, Need some advice on adding datetime functionality into Python 2.2 Windows. Is it worth me trying to get the 2.3 datetime(pyd) file working. I don't think it is. Can someone recommend "Datetime" src which I can use. thanks Miles. milesd@chocksaway.com wrote: > Hi, > > Need some advice on adding datetime functionality into Python 2.2 > Windows. Is it worth me trying to get the 2.3 datetime(pyd) file > working. I don't think it is. > Can someone recommend "Datetime" src which I can use. > > thanks > > Miles. > A lot of ...

python-2.7.3 vs python-3.2.3
Greetings; I have need of using a script written for python3, but the default python on wheezy is 2.7.3. I see in the wheezy repos that 3.2.3-6 is available. Can/will they co-exist peacefully? Thank you. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> On 26/01/16 13:26, Gene Heskett wrote: > Greetings; > > I have need of using a script written for python3, but the default pytho...

[RELEASED] Python 3.2.5 and Python 3.3.2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I am pleased to announce the releases of Python 3.2.5 and 3.3.2. The releases fix a few regressions in 3.2.4 and 3.3.1 in the zipfile, gzip and xml.sax modules. Details can be found in the changelogs: http://hg.python.org/cpython/file/v3.2.5/Misc/NEWS and http://hg.python.org/cpython/file/v3.3.2/Misc/NEWS To download Python 3.2.5 or Python 3.3.2, visit: http://www.python.org/download/releases/3.2.5/ or http://www.python.org/download/releases/3.3.2/ respectively. As always, please report bugs to http://bugs.python.org/ (Thank you to those who reported these regressions.) Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and all contributors) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlGUbJ4ACgkQN9GcIYhpnLDH8ACdEM4k7bobLJsFmCb49zuwQR3W EjgAoIWAOFNhJNdTAWEGSWqFWUP20wrb =YnPr -----END PGP SIGNATURE----- ...

[RELEASED] Python 3.2.5 and Python 3.3.2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I am pleased to announce the releases of Python 3.2.5 and 3.3.2. The releases fix a few regressions in 3.2.4 and 3.3.1 in the zipfile, gzip and xml.sax modules. Details can be found in the changelogs: http://hg.python.org/cpython/file/v3.2.5/Misc/NEWS and http://hg.python.org/cpython/file/v3.3.2/Misc/NEWS To download Python 3.2.5 or Python 3.3.2, visit: http://www.python.org/download/releases/3.2.5/ or http://www.python.org/download/releases/3.3.2/ respectively. As always, please report bugs to http://bugs.python.org/ (Thank you to those who reported these regressions.) Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and all contributors) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlGUbJ4ACgkQN9GcIYhpnLDH8ACdEM4k7bobLJsFmCb49zuwQR3W EjgAoIWAOFNhJNdTAWEGSWqFWUP20wrb =YnPr -----END PGP SIGNATURE----- ...

Upgrade from VO 1 - 2 - 2..1 -2.2 - 2.3 -2.4 - 2.5 - 2.6 - 2.7
About upgrade 2.5 - 2.7 at $ 384.00 For most products I'm using - the updates (2.0 - 2.1 - 2.7) are free... 2.0 to 3.0 might be worth + 10-30% of the original price? VO is + full price again & again - Full program price for every minor upgrade/bug-fix? I dropped out of the money/bugs [VO] at 2.5 after starting at 1.0 more than 10 years ago. Certainly whoever is making VO have to make a living; earning moneys: - that is OK! A 10 years old VO site; - 10 years later, how much have changed? http://www.yi.com/prany/cavo/cavofront.htm Even MS is not ...

Freeze with wxpython on python 2.3 or python 2.4 on Win32 with Thread #2
Hello i have a problem with thread and wxpython on WIN32. With this script : I would like to SetValue to my gauge widget in a thread. I can GetValue without a hitch but if I SetValue it freezing. Try following script and go to AF-Tools Menu and click install Normally in the install thread, I wrote "yo" in the console and I SetValue of the gauge passed to the thread. from wxPython.wx import * from wxPython.wizard import * from os import * #import os #import win32wnet, win32netcon #import wmi #import win32api #import _winreg import time #import win32com,win32com.client import sys...

[RELEASED] Python 3.2.6, Python 3.3.6
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the release of Python 3.2.6 and 3.3.6. Both are security-fix releases, which are provided source-only on python.org. The list of security-related issues fixed in the releases is given in the changelogs: https://hg.python.org/cpython/raw-file/v3.2.6/Misc/NEWS https://hg.python.org/cpython/raw-file/v3.3.6/Misc/NEWS To download the releases visit one of: https://www.python.org/downloads/release/python-326/ https://www.python.org/downloads/release/...

Python 2.6 OR 3.2
Hi All, Please let me know which one is GOOD whether Python 2.6 OR 3.2. Please let me know the difference between them. Please give some refernce site or books to know the difference In <9037ef5f-53c5-42c6-ac5d-8f942df6ccc5@x38g2000pri.googlegroups.com> hisan <santosh.ssit@gmail.com> writes: > Hi All, > Please let me know which one is GOOD whether Python 2.6 OR 3.2. > Please let me know the difference between them. > Please give some refernce site or books to know the difference If you're starting new, use 3.2. All code will eventually move to this newer style...

[RELEASED] Python 3.2 beta 2 #2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the second beta preview release of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x line will only receive bugfixes, and new features are developed for 3.x only. Since PEP 3003, the Moratorium on Language Changes, is in effect, there are no changes in Python's syntax and built-in types in Python 3.2. Development efforts concentrated on the standard library and sup...

__contains__ inconsistencies between Python 2.2 and 2.3
Hello I have been developing a code that works pretty well on my python 2.3 and now when i am running it on my server where it is programmed to run it's giving me errors. I have been using __contains__ method and it fails on python 2.2 For example (Python 2.3) >> x="Hello World" >> print x.__contains__("Hello") True (Python 2.2) >>> x="Hello world" >>> print x.__contains__("Hello") Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: 'in <string>' require...

Class Variables (Python 2.2/2.3)
Hello Members, I do not see any direct mention of class variables in new style classes. Only class methods. Have I missed or is it trivial? If not, how to define/implement class variables for new style classes? Regards, Srijit srijit@yahoo.com wrote: > Hello Members, > I do not see any direct mention of class variables in new style > classes. Only class methods. Have I missed or is it trivial? If not, > how to define/implement class variables for new style classes? From my practical point of view, there are no differences between old and new style classes in this respect: def ...

python 2.1 and 2.2
This is a multi-part message in MIME format. --------------090608080807070903010708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, I remembered reading somewhere that Guido had demonstrated a significant speed increase from python 2.1 to python 2.2 (or something like that). Anyone knows how is the test done? Is it using pystone.py? Thanks maurice --------------090608080807070903010708 Content-Type: text/x-vcard; charset=utf-8; name="mauriceling.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="m...

Error building Python 2.6.3 and 2.6.4rc2
HI! I'm on a openSUSE system where Python 2.6 is installed from RPMs. I'm trying to build Python from source separately. This used to work in former versions but fails now (see build traceback below). Anyone having a clue what's going on here? Is there a possible work-around? A possible conflict with the openSUSE-RPMs? Ciao, Michael. ----------------------------- snip ----------------------------- /usr/src/Python-2.6.4rc2> make 'import site' failed; use -v for traceback Traceback (most recent call last): File "./setup.py", line 15, in <module> f...

How to crash Python in 1 easy step (python 2.2.2)
I'm not sure if this is a python bug or a bug in an associated library, and I'm not even sure how to correctly report it, but here is Anytime python is accepting keyboard input, whether it's with raw_input, or sitting on the command line waiting for the user to type code, you can crash python by holding ctrl+shift and then pressing enter. This is on a RedHat 9.0 system running on an Athlon 600. Basically everything about the system is standard except for what's been updated by RedHat itself. If anyone who has the time and ability to track down this bug needs more information, please email me. Paul Miller wrote: > I'm not sure if this is a python bug or a bug in an associated > library, and I'm not even sure how to correctly report it, but here is > Anytime python is accepting keyboard input, whether it's with > raw_input, or sitting on the command line waiting for the user to type > code, you can crash python by holding ctrl+shift and then pressing > enter. > > This is on a RedHat 9.0 system running on an Athlon 600. Basically > everything about the system is standard except for what's been updated > by RedHat itself. If anyone who has the time and ability to track > down this bug needs more information, please email me. I doubt it is a problem in Python, it works nicely on both my windows and my linux machines (python 2.2.3). Just a gut feeling: reinstall/upgrade your readline library..... --Irme...

Serious trouble with https (Python 2.2.3 & 2.3.3), How to check for working ssl?
Some people tipped me off on some possibilities to tackle my https problem. Those have definitely gotten me further in cornering the problem. Thank you. But: No matter what I do to open a webconnection with httpS I always get something in this Area: urllib2.URLError: <urlopen error unknown url type: https> With both versions of Python mentioned above. My strong suspicion is that the socket stuff (dunno exact libname right now...) is compiled without ssl support. What I would like to know now is following: 1) What is the default setting for the compilation of the original Pyth...

Web resources about - Altering 2 statements from Python 2.6 => 3.2 - comp.lang.python

User:Jimbo Wales/Statement of principles - Wikipedia, the free encyclopedia
As we move forward with software and social changes, I think it is imperative that I state clearly and forcefully my views on openness and the ...

Category:Articles containing potentially dated statements from June 2006 - Wikipedia, the free encyclopedia ...
This is an administration category . It is used for administration of the Wikipedia project and is not part of the encyclopedia. It contains ...

Statement from the editor-in-chief
I have concluded a formal review into the column &quot;The horrifying untold story of Louise&quot;, published on Monday, February 22. The article ...

Apple vs FBI: Apple’s statement to Congress, Apple’s lawyer & Warren Buffet weigh in
Apple is set to officially make a statement before Congress tomorrow regarding its refusal to fulfill a judge’s request to help the FBI unlock ...

GHSA releases statement following basketball goals controversy
The GHSA releases a statement in response to controversy over the placement of basketball goals at the state championships in Macon.

Apple takes its FBI fight to Congress read the company's powerful opening statement
... hearing. Apple’s General Counsel, Bruce Sewell, will make the company’s case before the house Judiciary Committee and his opening statement ...

Dan Quinn Releases Statement After Falcons Coach Asks Eli Apple If He Likes Men - Bleacher Report
Ohio State cornerback Eli Apple recently traveled to Indianapolis to participate in the NFL Scouting Combine, and he revealed Friday during an ...

WaPo’s EJ Dionne: Southerners Hear ‘Racial Overtones’ in Trump’s Immigration Statements
WaPo's EJ Dionne: Southerners Hear 'Racial Overtones' in Trump's Immigration Statements

Statement from Jessica Herrera-Flanigan, Executive Vice President, Government Relations & Public Policy ...
Univision Communications Inc.: &ldquo;We are disappointed that after trying for months to engage with AT&amp;amp;T to reach an agreement, U-Verse ...

NJ State Police Release Statement, Photo Of Trooper Who Died After Being Struck By Vehicle
Trooper Cullen, 31, died after he was struck by a vehicle on I-295 in Deptford Township Monday night.

Resources last updated: 3/10/2016 7:12:49 AM