[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk


Winson Luk  added the comment:

To replicate:

$ mkdir foo
$ sudo chown root foo
$ sudo touch foo/child
$ python3
>>> import shutil
>>> shutil.move('foo', 'bar')
PermissionError
$ ls foo
child
$ ls bar
child

If shutil.move() encountered a permission error and failed, bar should not have 
been created.

--

___
Python tracker 
<https://bugs.python.org/issue42782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk


New submission from Winson Luk :

shutil.move calls shutil.copytree(), then os.rmtree() (in that order). If the 
user does not have permission to delete the source directory, copytree succeeds 
but rmtree fails. The user sees an error (Permission Denied), but the 
destination directory is still created. The expected behavior should be a 
Permission Denied without the creation of the destination directory.

--

___
Python tracker 
<https://bugs.python.org/issue42782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk


Change by Winson Luk :


--
keywords: +patch
pull_requests: +22843
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24001

___
Python tracker 
<https://bugs.python.org/issue42782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk


Change by Winson Luk :


--
components: Library (Lib)
nosy: winsonluk
priority: normal
severity: normal
status: open
title: shutil.move creates a new directory even on failure
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue42782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



ActiveState Offers Extended Support for Python 2 Beyond EOL

2019-07-16 Thread Kara Luk
Hi Python Software Foundation team -

Hope this note finds you well. Today, open source language automation provider, 
ActiveState announced a new commercial support offering for Python 2 beyond its 
impending end of life date.

Please find the press release below.

Let me know if there’s any additional information that I can provide.

Cheers,

Kara
ActiveState Offers Extended Support for Python 2 Beyond EOL
Open Source Leader Provides Enterprises with Support Safety Net for Python 2 
Applications

VANCOUVER, British Columbia – July 16, 2019 –  ActiveState today announced a 
commercial support offering that includes security fixes for Python 2 beyond 
its impending End of Life (EOL) date.

Community support for Python 2 will expire on Jan. 1, 2020. After that date, 
the Python core team and many third-party package authors will no longer be 
supporting, maintaining or updating any of their Python 2.x releases. 
Organizations with Python 2 deployments are faced with a key decision: whether 
to rewrite, migrate or maintain their existing applications. No matter which 
option they choose, the safety net of a commercial support provider can help 
reduce risk and save developer time.

Click to Tweet: @ActiveState offers commercial support 
for Python 2 beyond EOL. Get security fixes for your Python 2 applications 
after community support expires on Jan. 1 2020 here: http://bit.ly/2XIsXqM 
#python

The ActiveState offering includes:
●  Support for both the Python 2 core language and standard libraries, as 
well as the third-party, open source packages, libraries and modules listed in 
the Python Package Index (PyPI).
●  Backported security fixes implemented in Python 3 core language code and 
third-party packages.
●  Resolution of Python 2 specific issues by ActiveState’s Python experts 
in conjunction with the Python community.

ActiveState has more than 20 years of experience in supporting Python for 
enterprises. Commercial Python support is available today for both Python 2 and 
Python 3 developers. Extended support for Python 2 begins on Jan. 1, 2020. For 
more information about the support ActiveState offers, click 
here.

Jeff Rouse, vice president, product management, said: “The majority of Python 
deployments are currently Python 2 applications, services and scripts. We’ve 
spoken to many organizations that are worried about the impending Python 2 EOL. 
Universally, they’re concerned about inevitable code vulnerabilities and the 
impact they’ll have on application security. ActiveState’s commercial support 
offering is designed to provide these organizations with peace of mind.”

About ActiveState
ActiveState helps enterprises scale securely with open source languages and 
gives developers the kinds of tools they love to use. More than 2 million 
developers and 97 percent of Fortune 1,000 enterprises use ActiveState to 
support mission-critical systems and speed up software development while 
enhancing oversight and increasing quality. https://www.activestate.com


Press Contacts:
Jessica M. Pasko
Nadel Phelan, Inc.
831-440-2412
jess...@nadelphelan.com

  
https://www.prnewswire.com/news-releases/activestate-offers-extended-support-for-python-2-beyond-eol-300885345.html

--
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue5421] Irritating error message by socket's sendto method

2009-03-05 Thread Luk Knapen

Luk Knapen luk.kna...@telenet.be added the comment:

File $python/lib/python3.0/logging/handlers.py
Line 782 : a bytes object is required instead of a string.
As a consequence, encoding shall be specified : but which one ?

Is : 
   self.socket.sendto(msg, self.address)
Should look like :
   self.socket.sendto(bytes(msg,'ascii'), self.address)

--
nosy: +lukknapen
versions: +Python 3.1 -Python 2.4, Python 2.5, Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5421
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Can I control Video Card by using Python under linux?

2006-04-02 Thread LUK
Thank you! I will try.

-- 
http://mail.python.org/mailman/listinfo/python-list


Can I control Video Card by using Python under linux?

2006-03-31 Thread LUK
Hi, I have a video card based on cx2388 chip to catch video and do the
other thing.
There's already a V4L2 driver for it, but it is too hard for me to
program in C.
Can I use Python do the job?
Does Python has simpler APIs?
Please gvie me some suggestion.
Thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list