Re: "How to package additional files under site-packages "

2019-03-05 Thread dieter
Saba Kauser writes: > ... > My package (ibm_db) has LICENSE, README.md and CHANGES files that I want to > be available in the same location as my package is installed I.e under > site-packages. However, with current setup.py > https://github.com/ibmdb/python-ibmdb/blob/master/IBM_DB/ibm_db/setu

RE: "How to package additional files under site-packages "

2019-03-05 Thread Saba Kauser
Thanks! My package (ibm_db) has LICENSE, README.md and CHANGES files that I want to be available in the same location as my package is installed I.e under site-packages. However, with current setup.py https://github.com/ibmdb/python-ibmdb/blob/master/IBM_DB/ibm_db/setup.py, these files get inst

Re: Class Issue`

2019-03-05 Thread Terry Reedy
On 3/5/2019 6:11 PM, Kevin Hu wrote: Python is a language with very weak typing, Python runtime objects are strongly dynamically typed. Their type/class is one of their attributes. All classes are subclasses of class 'object'. Python names (variables) are untyped in a sense, or one could

Re: Class Issue`

2019-03-05 Thread eryk sun
On 3/5/19, Kevin Hu wrote: > > Python is a language with very weak typing, and it’ll happily shoehorn data > into variables even when you don’t expect it to. Python has strong typing, in that it doesn't implicitly coerce unrelated types in expressions. However, it has no enforced static typing of

Re: Class Issue`

2019-03-05 Thread DL Neil
Milt, On 6/03/19 11:39 AM, Milt wrote: The following code gives me unusual results - base on experience with C++. class Car:    # carColor = None    # mileage = None    def __init__(self, color = None, miles = None):   self.mileage = miles   self.carColor = color    def print(self)

Re: Decodificar base64 en Odoo 12

2019-03-05 Thread angiielovee177
El martes, 5 de marzo de 2019, 3:05:07 (UTC-6), Peter Otten escribió: > angiielovee...@gmail.com wrote: > > > El lunes, 4 de marzo de 2019, 11:07:40 (UTC-6), Peter Otten escribió: > >> Angie GL wrote: > >> > >> > Hola a todos, tengo un problema al decodificar el contenido de una > >> > variable b

Re: Class Issue`

2019-03-05 Thread Kevin Hu
I believe for the correct behavior you’ll need: myCar = Car(color=‘blue’, miles=15000) myCar = Car(miles=25000, color=‘orange’) In which case both objects will be initialized as the way you’d expect. Python is a language with very weak typing, and it’ll happily shoehorn data into variables ev

Re: Class Issue`

2019-03-05 Thread Chris Angelico
On Wed, Mar 6, 2019 at 10:01 AM Milt wrote: > > The following code gives me unusual results - base on experience with C++. > def __init__(self, color = None, miles = None): >self.mileage = miles >self.carColor = color > > myCar = Car('blue', 15000) > myCar = Car(25000, 'orange'

Class Issue`

2019-03-05 Thread Milt
The following code gives me unusual results - base on experience with C++. class Car:    # carColor = None    # mileage = None    def __init__(self, color = None, miles = None):   self.mileage = miles   self.carColor = color    def print(self):   print(f"Color:   {self.carColor}")  

ANN: Wing Python IDE 6.1.5 released

2019-03-05 Thread Wingware
Wing Python IDE version 6.1.5 is now available for download . Changes in 6.1.5 * Improves code intelligence for extension modules on remote hosts * Adds a debug status icon to the debug process selector, and

Re: Decodificar base64 en Odoo 12

2019-03-05 Thread Peter Otten
angiielovee...@gmail.com wrote: > El lunes, 4 de marzo de 2019, 11:07:40 (UTC-6), Peter Otten escribió: >> Angie GL wrote: >> >> > Hola a todos, tengo un problema al decodificar el contenido de una >> > variable base64. >> > >> > De esta manera lo hago: >> > >> > cfdi = base64.b64decode(inv.l10