Re: right way to use zipimport, zipimport.ZipImportError: not a Zip file

2018-08-13 Thread dieter
iMath writes: > ... > It seems possible in Python to use `zipimport` to directly use the zip > archive of the module without extraction, I wonder what is the right way to > use `zipimport`. Your problem may come from the following restriction (cited from the Python 2 documentation of `zipimport

>< swap operator

2018-08-13 Thread Léo El Amri via Python-list
On 13/08/2018 21:54, skybuck2...@hotmail.com wrote: > I just had a funny idea how to implement a swap operator for types: > > A >< B > > would mean swap A and B. I think that: a, b = b, a is pretty enough -- https://mail.python.org/mailman/listinfo/python-list

>< swap operator

2018-08-13 Thread skybuck2000
Hello, I just had a funny idea how to implement a swap operator for types: A >< B would mean swap A and B. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

wiki.python.org Gateway time-out

2018-08-13 Thread Abdur-Rahmaan Janhangeer
creating an account on wiki.python.org, always same error : gateway time-out. any solution? yours, Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Python 3.6 Logging time is not listed

2018-08-13 Thread Léo El Amri via Python-list
On 13/08/2018 19:23, MRAB wrote: > Here you're configuring the logger, setting the name of the logfile and > the logging level, but not specifying the format, so it uses the default > format: > >> logging.basicConfig(filename='example.log',level=logging.DEBUG) > > Here you're configuring the logg

Re: Python 3.6 Logging time is not listed

2018-08-13 Thread MRAB
On 2018-08-13 17:37, Keep Secret wrote: #!/usr/bin/env python3 import logging Here you're configuring the logger, setting the name of the logfile and the logging level, but not specifying the format, so it uses the default format: logging.basicConfig(filename='example.log',level=logging.DE

Re: Python 3.6 Logging time is not listed

2018-08-13 Thread Alexandre Brault
On 2018-08-13 12:37 PM, Keep Secret wrote: > #!/usr/bin/env python3 > import logging > logging.basicConfig(filename='example.log',level=logging.DEBUG) > logging.basicConfig(format='%(asctime)s;%(levelname)s:%(message)s', > level=logging.DEBUG) > logging.debug('Message1) > logging.info('Message2')

Python 3.6 Logging time is not listed

2018-08-13 Thread Keep Secret
#!/usr/bin/env python3 import logging logging.basicConfig(filename='example.log',level=logging.DEBUG) logging.basicConfig(format='%(asctime)s;%(levelname)s:%(message)s', level=logging.DEBUG) logging.debug('Message1) logging.info('Message2') logging.warning('Message3') DEBUG:root:Message1 INFO:roo

right way to use zipimport, zipimport.ZipImportError: not a Zip file

2018-08-13 Thread iMath
The same question also posted here https://stackoverflow.com/questions/51820473/right-way-to-use-zipimport-zipimport-zipimporterror-not-a-zip-file I have managed to use [this module][1] without installation - just import it from path to use , import sys url = 'https://example.com' s

Re: Multiprocessing "Pool" aborts without any error message or return code? (Python 3.6.4, cygwin 32 bit, Windows Server 2012)

2018-08-13 Thread Niels Kristian Jensen
fredag den 10. august 2018 kl. 15.35.46 UTC+2 skrev Niels Kristian Jensen: > Please refer to: > (cut) It appears, that Python is simply not supported on Cygwin (!): https://bugs.python.org/issue30563 Best regards, Niels Kristian -- https://mail.python.org/mailman/listinfo/python-list