<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/copy.py, branch 3.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/copy.py?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/copy.py?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-06-10T13:59:39Z</updated>
<entry>
<title>gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609) (GH-93632)</title>
<updated>2022-06-10T13:59:39Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-06-10T13:59:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a0c7df09689769f3016dc9145eb56341aac631a9'/>
<id>urn:sha1:a0c7df09689769f3016dc9145eb56341aac631a9</id>
<content type='text'>
copy.copy() and copy.deepcopy() now always raise a TypeError if
__reduce__() returns a tuple with length 6 instead of silently ignore
the 6th item or produce incorrect result.
(cherry picked from commit a365dd64c2a1f0d142540d5031003f24986f489f)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-45752: Remove "array" from list of things that cannot be copied in `copy` module docstring (GH-29555)</title>
<updated>2021-11-14T13:18:31Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-11-14T13:18:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=55d24edaadba4ee90f464d88b44075649788f128'/>
<id>urn:sha1:55d24edaadba4ee90f464d88b44075649788f128</id>
<content type='text'>
Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit c2c4fdf5ea6e9cba4ef469d08a52abb9cfa756a5)

Co-authored-by: Alex Waygood &lt;Alex.Waygood@Gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-40792: Make the result of PyNumber_Index() always having exact type int. (GH-20443)</title>
<updated>2020-05-28T07:33:45Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-05-28T07:33:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5f4b229df7812f1788287095eb6b138bb21876a4'/>
<id>urn:sha1:5f4b229df7812f1788287095eb6b138bb21876a4</id>
<content type='text'>
Previously, the result could have been an instance of a subclass of int.

Also revert bpo-26202 and make attributes start, stop and step of the range
object having exact type int.

Add private function _PyNumber_Index() which preserves the old behavior
of PyNumber_Index() for performance to use it in the conversion functions
like PyLong_AsLong().</content>
</entry>
<entry>
<title>bpo-38293: Allow shallow and deep copying of property objects (GH-16438)</title>
<updated>2020-01-12T17:41:49Z</updated>
<author>
<name>Guðni Natan Gunnarsson</name>
<email>1493259+GudniNatan@users.noreply.github.com</email>
</author>
<published>2020-01-12T17:41:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9f3fc6c5b4993f2b362263b494f84793a21aa073'/>
<id>urn:sha1:9f3fc6c5b4993f2b362263b494f84793a21aa073</id>
<content type='text'>
Copying property objects results in a TypeError. Steps to reproduce:

```
&gt;&gt;&gt; import copy
&gt;&gt;&gt; obj = property()
&gt;&gt;&gt; copy.copy(obj)
````

This affects both shallow and deep copying.  
My idea for a fix is to add property objects to the list of "atomic" objects in the copy module.
These already include types like functions and type objects.

I also added property objects to the unit tests test_copy_atomic and test_deepcopy_atomic. This is my first PR, and it's highly likely I've made some mistake, so please be kind :)


https://bugs.python.org/issue38293</content>
</entry>
<entry>
<title>bpo-11572: Make minor improvements to copy module (GH-8208)</title>
<updated>2018-07-09T20:14:54Z</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2018-07-09T20:14:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2708578736d1aa15685495e9b94b827a8e185a8c'/>
<id>urn:sha1:2708578736d1aa15685495e9b94b827a8e185a8c</id>
<content type='text'>
* When doing getattr lookups with a default of "None", it now
  uses an "is" comparison against None which is more correct
* Removed outdated code

Patch by Brandon Rhodes.</content>
</entry>
<entry>
<title>Issue #26167: Minimized overhead in copy.copy() and copy.deepcopy().</title>
<updated>2016-03-06T12:56:57Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-03-06T12:56:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=818e18dd94611a2f0f4b0015661488ef0cd867dc'/>
<id>urn:sha1:818e18dd94611a2f0f4b0015661488ef0cd867dc</id>
<content type='text'>
Optimized copying and deepcopying bytearrays, NotImplemented, slices,
short lists, tuples, dicts, sets.
</content>
</entry>
<entry>
<title>Issue #26202: copy.deepcopy() now correctly copies range() objects with</title>
<updated>2016-01-28T19:43:35Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-01-28T19:43:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a20bbf66913157bb54b8d6e426f540233c7ea6c'/>
<id>urn:sha1:0a20bbf66913157bb54b8d6e426f540233c7ea6c</id>
<content type='text'>
non-atomic attributes.
</content>
</entry>
<entry>
<title>Issue #25718: Fixed copying object with state with boolean value is false.</title>
<updated>2015-11-30T15:35:40Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-11-30T15:35:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b63015b01a07c535ef4c26fe0bc4c336295dd08e'/>
<id>urn:sha1:b63015b01a07c535ef4c26fe0bc4c336295dd08e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #25718: Fixed copying object with state with boolean value is false.</title>
<updated>2015-11-30T15:20:02Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-11-30T15:20:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cbbec1c53f4b6fb88b4ae984e69db2d2951cd560'/>
<id>urn:sha1:cbbec1c53f4b6fb88b4ae984e69db2d2951cd560</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #20289: The copy module now uses pickle protocol 4 (PEP 3154) and</title>
<updated>2015-03-24T16:06:42Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-03-24T16:06:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32af7549a7cf8f112c44526a28afa6c99e67269c'/>
<id>urn:sha1:32af7549a7cf8f112c44526a28afa6c99e67269c</id>
<content type='text'>
supports copying of instances of classes whose __new__ method takes
keyword-only arguments.
</content>
</entry>
</feed>
