GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add Python version since deprecation in base64 methods. by Carreau · Pull Request #33 · python/cpython

Conversation

@Carreau

@Carreau Carreau commented Feb 12, 2017

Copy link
Copy Markdown
Contributor

Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Feb 12, 2017
@berkerpeksag

berkerpeksag commented Feb 12, 2017

Copy link
Copy Markdown
Member

3.1 basically means it has been deprecated since the beginning of Python 3 (3.0 wasn't a production quality release) I don't think mentioning an ancient Python 3 version would improve anything.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zware

zware commented Feb 12, 2017

Copy link
Copy Markdown
Member

@berkerpeksag I think the point may be to clarify that they have always been deprecated (in Python 3). I'd suggest that we could remove the mention of the deprecated aliases from the docs and keep the added version information in the warnings. If they're not necessary for 2/3 compatibility (I haven't checked), I'd say we can just remove them by now.

Carreau and mpacer reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@berkerpeksag

berkerpeksag commented Feb 12, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I think they are still in stdlib because of 2/3 compatibility :) I won't object changing the docs to:

.. deprecated:: 3.1
   ``encodestring`` is a deprecated alias.

But I'm -1 for changing the deprecation warning. I only found five instances where we added version information in the whole stdlib and it would be nice keep them short.

matrixise reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Carreau

Carreau commented Feb 12, 2017

Copy link
Copy Markdown
Contributor Author

3.1 basically means it has been deprecated since the beginning of Python 3 (3.0 wasn't a production quality release) I don't think mentioning an ancient Python 3 version would improve anything.

I think the point may be to clarify that they have always been deprecated (in Python 3)

Yes, thanks for precising, sorry if it was unclear. I agree that the 3.1/3 distinction does not import much, I can change to 3 if you think it is better. But indeed, adding the version number is to have a clear message as to when developpers can be expected to use Xbytes / Drop Xstring.

I'd suggest that we could remove the mention of the deprecated aliases from the docs and keep the added version information in the warnings. If they're not necessary for 2/3 compatibility (I haven't checked), I'd say we can just remove them by now.

I would remove the aliases from the doc as well, but I'm sure some other people may be against that.
You at least want to make sure it's googleable. I can do it if requested.

I won't object changing the docs to: .. deprecated:

Absolutely, I can do that. That's a really good point.

But I'm -1 for changing the deprecation warning. I

Let me try to explain why I think version number since deprecation is a useful addition. If I am developing an application and I see a deprecation warning including the version number in the deprecation warning will be the difference making me decide I need to upgrade because I know all the Python version I support have the new API. And me just ignoring the deprecation warning because I don't have the time to goo fetch the doc, and find the version since deprecation.

I think that giving incentive to people to update from deprecated API is crucial if you want adoption of new APIs.

and it would be nice keep them short.

That's a perfectly valid argument as well "Available since 3.1" might be too much. Would "encodestring() is a deprecated alias since Python 3 use encodebytes()" be short enough for you ?

I appreciate the time you took to respond to me. I'll update the doc accordingly.

Thanks.

mpacer reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Carreau
Carreau force-pushed the deprecations-base64 branch from 7da0daf to ad04ebf Compare February 13, 2017 04:26
@codecov

codecov Bot commented Feb 13, 2017

Copy link
Copy Markdown

Codecov Report

Merging #33 into master will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   82.37%   82.37%   +<.01%     
==========================================
  Files        1427     1427              
  Lines      350948   350948              
==========================================
+ Hits       289091   289095       +4     
+ Misses      61857    61853       -4

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 649a7ca...ad04ebf. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Carreau
Carreau force-pushed the deprecations-base64 branch from ad04ebf to 0fadaa2 Compare February 16, 2017 03:12
@Carreau
Add Python version since deprecation in base64 methods.
1e409fb
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.
@Carreau
Carreau force-pushed the deprecations-base64 branch from 0fadaa2 to 1e409fb Compare February 16, 2017 04:09
@berkerpeksag
Update base64.rst
dda74cc
berkerpeksag
berkerpeksag reviewed Mar 1, 2017
View reviewed changes

@berkerpeksag berkerpeksag left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks! I don't think we need a Misc/NEWS entry for this. @zware what do you think about the last version of the PR?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
zware
zware approved these changes Mar 1, 2017
View reviewed changes
@berkerpeksag
berkerpeksag merged commit c643a96 into python:master Mar 2, 2017
@Carreau
Carreau deleted the deprecations-base64 branch March 2, 2017 17:34
@Carreau

Carreau commented Mar 2, 2017

Copy link
Copy Markdown
Contributor Author

Thanks ! Much appreciated !

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

berkerpeksag pushed a commit to berkerpeksag/cpython that referenced this pull request Mar 3, 2017
@Carreau @berkerpeksag
Add Python version since deprecation in base64 methods. (python#33)
c658368
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.

(cherry picked from commit c643a96)
@berkerpeksag berkerpeksag added needs backport to 3.5 labels Mar 3, 2017
berkerpeksag pushed a commit to berkerpeksag/cpython that referenced this pull request Mar 3, 2017
@Carreau @berkerpeksag
Add Python version since deprecation in base64 methods. (python#33)
695a101
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.

(cherry picked from commit c643a96)
@berkerpeksag berkerpeksag removed needs backport to 3.5 labels Mar 3, 2017
berkerpeksag added a commit that referenced this pull request Mar 3, 2017
@berkerpeksag
Add Python version since deprecation in base64 methods. (#33) (#430)
d0620bc
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.

(cherry picked from commit c643a96)
berkerpeksag added a commit that referenced this pull request Mar 3, 2017
@berkerpeksag
Add Python version since deprecation in base64 methods. (#33) (#429)
c7ff163
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.

(cherry picked from commit c643a96)
@mdboom mdboom mentioned this pull request Aug 25, 2022
Assert and incorrect error message when loading source file containing invalid UTF-8 #96268
Closed
@ziegenbalg ziegenbalg mentioned this pull request Nov 30, 2022
double free in io.TextIOWrapper #72573
Closed
jaraco pushed a commit that referenced this pull request Dec 2, 2022
@Mariatta
Don't clone CPython repo if it already exists (GH-33)
dbe0d8e
jaraco pushed a commit to jaraco/cpython that referenced this pull request Feb 17, 2023
@warsaw
Merge branch 'renames' into 'master'
8d6e24d
"filename" -> "resource"

Closes python#33

See merge request python-devs/importlib_resources!39
jaraco added a commit to jaraco/cpython that referenced this pull request Feb 17, 2023
@webknjaz @jaraco
Use extend-ignore in flake8 config (python#33)
77fbe1d
* Use `extend-ignore` in flake8 config

This option allows to add extra ignored rules to the default list
instead of replacing it.

The default exclusions are: E121, E123, E126, E226, E24, E704,
W503 and W504.

Fixes python#28.

Refs:
* https://github.com/pypa/setuptools/pull/2486/files#r541943356
* https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-extend-ignore
*
https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore

* Enable complexity limit. Fixes jaraco/skeleton#34.

* Replace pep517.build with build (python#37)

* Replace pep517.build with build

Resolves python#30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <[email protected]>

* Use license_files instead of license_file in meta (python#35)

Singular `license_file` is deprecated since wheel v0.32.0.

Refs:
* https://wheel.readthedocs.io/en/stable/news.html
* https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file

Co-authored-by: Jason R. Coombs <[email protected]>
Fidget-Spinner referenced this pull request in pylbbv/pylbbv May 27, 2023
@JuliaPoo @Fidget-Spinner
Fix: Ref leak in unboxing checks (#33)
7ec2dc0
* Added EXTENDED_ARG to type prop

* Revert "Added EXTENDED_ARG to type prop"

This reverts commit 7249cb7.

* Fix: Buggy type propagation across SWP

* Fix: Forgot to tag pointers in TYPE_SET

* Fix: BB_TEST_ITER wrong type propagation

* Fix: Bug in typeprop handling UNPACK_*, and bug in COPY_NO_INCREF

* Fix: Misc macro fix

* Fix: Ref leak in unboxing checks

---------

Co-authored-by: Ken Jin <[email protected]>
oraluben pushed a commit to oraluben/cpython that referenced this pull request Jun 25, 2023
@JuliaPoo @Fidget-Spinner
Fix: mark interpreter frames as tier 2 or not (python#34)
ce02765
* fix: mark interpreter frames as tier 2 or not

* Test: Added tests for python#33

---------

Co-authored-by: Ken Jin <[email protected]>
@gvanrossum gvanrossum mentioned this pull request Aug 22, 2023
heap-use-after-free in _PyFunction_LookupByVersion #108253
Closed
@LinanV LinanV mentioned this pull request Oct 23, 2023
Objects/typeobject.c: No such file or directory. #111203
Closed
@williamhu020 williamhu020 mentioned this pull request Nov 5, 2023
Use the API C of 'Py-NewInterpreterFromConfig' to exit unexpectedly in multiple threads. #111751
Closed
@kcatss kcatss mentioned this pull request Nov 15, 2023
Use-after-free in unregister() of atexit module #112127
Closed
nanjekyejoannah pushed a commit to nanjekyejoannah/cpython that referenced this pull request Dec 25, 2023
@ltratt
Merge pull request python#33 from nanjekyejoannah/fix_regression
35e650e
Fix regression
@kcatss kcatss mentioned this pull request Feb 20, 2024
Use After Free at _heapreplace_max #115706
Closed
@ngoldbaum ngoldbaum mentioned this pull request Sep 23, 2024
Crash running PyO3 tests with --test-threads=1000 #124375
Closed
This was referenced Feb 11, 2025
segmentfault when pip installing setuptools #129992
Closed
segmentfault when pip installing setuptools #129993
Closed
@DominiquePACCO DominiquePACCO mentioned this pull request Jun 3, 2025
PdfWriter add_page adds (re)writes old page instead of new #135062
Closed
@ashm-dev ashm-dev mentioned this pull request Oct 14, 2025
Memory leak in hmac module with HACL* backend detected by AddressSanitizer #140120
Closed
picnixz added a commit to picnixz/cpython that referenced this pull request Dec 8, 2025
@picnixz
Various UAFs & cosmetic fixes in `Python/{bltinmodule,bytecode,ceval}…
c4ed3c4
….c` (python#33)

* fix UAF in `bltinmodule.c`

* fix UAF in `bytecode.c`

* run `make regen-all`

* various improvements to `ceval.c`

* fix CI
@sergey-miryanov sergey-miryanov mentioned this pull request Dec 18, 2025
Observed memory leak in ssl library: Python 3.14 GC issue #142516
Closed
@Qanux Qanux mentioned this pull request Feb 11, 2026
heap-buffer-overflow in functools.partial.__repr__() #144475
Closed
@ngoldbaum ngoldbaum mentioned this pull request Mar 6, 2026
Remove deprecated and undocumented function ctypes.SetPointerType #133866
Closed
@johng johng mentioned this pull request Jul 19, 2026
use-after-free: functools partial #154189
Closed
@djarfluka djarfluka mentioned this pull request Sep 12, 2026
Heap UAF in io.TextIOWrapper read path via reentrant detach() #157363
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@berkerpeksag berkerpeksag berkerpeksag left review comments
@zware zware zware approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@Carreau @berkerpeksag @zware @the-knights-who-say-ni
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.