New submission from Carl :
urllib.URLopener (or urllib.request.URLopener for Python 3) and user defined
classes that inherit from these prematurely delete files upon cleanup. Any
temporary files downloaded using the .retrieve() method are deleted when an
instance of a URLopener is garbage
Carl added the comment:
@orsenthil, that is the correct behavior if you do not want to override any of
URLopener's handlers for error codes. In my case, I wanted to override
FancyURLopener (a child class of URLopener) to override HTTP 401 behavior.
Using urlretrieve is not correct in
New submission from Carl :
Hello,
I am trying to install python version 3.6.5 on a windows 2008 2008 rc2 SP1
server.
I have tired both the installer for python-3.6.5.exe and python-3.6.5-amd64.exe
installers.
Both will not run on the server either from the gui or the command line prompt
Carl added the comment:
Steve,
there was no information or no log files created in %TEMP%, but you would think
some kind of message dialog or log would be displayed or created.
And I am aware of the end of life for 2008 r2 enterprise server, but this
organization is still running this
Carl added the comment:
The Windows server 2008 is in the process of being updated to 2012. Thanks for
all the feedback
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from Carl :
>>> a = b"jan"
>>> b = "jan"
>>> a+b
Traceback (most recent call last):
File "", line 1, in
TypeError: can't concat str to bytes
>>> b+a
Traceback (most recent call last):
File "",
New submission from Carl Drougge :
PEP 495 names one of the accessor macros PyDateTime_GET_FOLD but the code names
it PyDateTime_DATE_GET_FOLD.
The FOLD macros are also missing from
https://docs.python.org/3/c-api/datetime.html (and versions).
--
assignee: docs@python
components
New submission from Carl Meyer :
CPython extensions providing optimized execution of Python bytecode (e.g. the
Cinder JIT), or even CPython itself (e.g. the faster-cpython project) may wish
to inline-cache access to frequently-read and rarely-changed namespaces, e.g.
module globals. Rather
Change by Carl Meyer :
--
title: add support for watching writes to selecting dictionaries -> add support
for watching writes to selected dictionaries
___
Python tracker
<https://bugs.python.org/issu
Carl Meyer added the comment:
Thanks gps! Working on a PR and will collect pyperformance data as well.
We haven't observed any issues in Cinder with the callback just being called at
shutdown, too, but if there are problems with that it should be possible to
just have CPython clea
Carl Meyer added the comment:
> Could we (or others) end up with unguarded stale caches if some buggy
> extension forgets to chain the calls correctly?
Yes. I can really go either way on this. I initially opted for simplicity in
the core support at the cost of asking a bit more of c
Carl Meyer added the comment:
Thanks for the feedback!
> Why so coarse?
Simplicity of implementation is a strong advantage, all else equal :) And the
coarse version is a) at least somewhat proven as useful and usable already by
Cinder / Cinder JIT, and b) clearly doable without introduc
Changes by Carl Trachte:
--
components: IDLE
severity: normal
status: open
title: Idle - Save (buffer)
type: behavior
versions: Python 3.0
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Changes by Carl Trachte:
--
title: Idle - Save (buffer) -> Idle - Save (buffer) - closes IDLE and does not
save file (Windows XP)
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
New submission from Carl Meyer :
As discussed at
http://groups.google.com/group/the-fellowship-of-the-packaging/browse_frm/thread/3b7a8ddd307d1020
, distutils2 should not allow a distribution to install files into a top-level
package that is already installed from a different distribution
Carl Robben added the comment:
I found that bdist_rpm wasn't registering distributions with dist.dist_files at
all. The attached patch should be all that's needed to fix this.
--
keywords: +patch
nosy: +crobben
Added file: http://bugs.python.org/file2/bdist
Carl Robben added the comment:
Here's a patch for test_bdist_rpm.py and to check the contents of
dist.dist_files
--
Added file: http://bugs.python.org/file23363/test_bdist_rpm.patch
___
Python tracker
<http://bugs.python.org/i
Carl Robben added the comment:
Adding a patch for 2.7
--
Added file: http://bugs.python.org/file23364/bdist_rpm-2.7.patch
___
Python tracker
<http://bugs.python.org/issue2
Carl Robben added the comment:
Yeah I installed rpm and have run the tests successfully.
--
___
Python tracker
<http://bugs.python.org/issue2945>
___
___
Pytho
Carl Meyer added the comment:
> Carl: Can you tell us how pip removes directories?
In short - pip would _love_ to have directories recorded as well as files,
exactly as Vinay has proposed. We don't have that info (even the distutils
--record option currently doesn't record dire
Carl Meyer added the comment:
> This is what I proposed earlier: we’d need to record all directories that
> would have been created, but I’m not sure if it will be possible. For
> example, if one uses --prefix /tmp/usr and pysetup install creates /tmp/usr,
> /tmp/usr/lib,
New submission from Carl Meyer :
If the test suite is run with PYTHONNOUSERSITE=true, the test_s_option test in
test_site fails, because it implicitly assumes that site.ENABLE_USER_SITE is
True and that site.USER_SITE should unconditionally be in sys.path.
This is a practical problem in the
Carl Meyer added the comment:
Added a patch implementing my proposed fix.
--
hgrepos: +87
___
Python tracker
<http://bugs.python.org/issue13304>
___
___
Pytho
Changes by Carl Meyer :
--
keywords: +patch
Added file: http://bugs.python.org/file23575/cea40c2d7323.diff
___
Python tracker
<http://bugs.python.org/issue13
Changes by Carl Meyer :
Removed file: http://bugs.python.org/file23575/cea40c2d7323.diff
___
Python tracker
<http://bugs.python.org/issue13304>
___
___
Python-bugs-list m
Changes by Carl Meyer :
Added file: http://bugs.python.org/file23576/d851c64c745a.diff
___
Python tracker
<http://bugs.python.org/issue13304>
___
___
Python-bugs-list m
Carl Meyer added the comment:
Here's an example real-world case where the only solution I could find was to
simply avoid non-ASCII characters entirely (which is obviously not a real
solution): https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
distutils/distribute re
New submission from Carl Crowder :
logging.handlers.SysLogHandler contains this class variable and comment:
# curious: when talking to the unix-domain '/dev/log' socket, a
# zero-terminator seems to be required. this string is placed
# into a class variable so that
Carl Crowder added the comment:
Flume certainly could avoid parsing certain values. However, while a syslog
application "should avoid octet values below 32", they are still "legal" [1]. I
don't think that adjusting flume to reject legal values due to legacy behav
Carl Crowder added the comment:
Oh, I understand. Flume doesn't break, it handles the \0 just fine, the problem
is that I ended up with a message with that additional byte on the end. Sorry
for the confusion!
--
___
Python tracker
Carl Meyer added the comment:
Can someone post a link here to the page of use cases that Michael just
reviewed? I think the link came through on the Fellowship mailing list, but I'm
not quickly finding it...
--
___
Python tracker
Carl Meyer added the comment:
On 07/11/2011 09:17 AM, Michael Mulich wrote:
> * Cases 2, 3, 5 and 6 are strongly related. I'd suggest you condense them
> into a single use case. I agree with case 2 and 6 most, but have questions:
> ** Why wouldn't one simply use a virtualenv
Carl Meyer added the comment:
You guys are more familiar with the codebase than I am, but it seems to me that
the RECORD file should clearly either be not present or empty when metadata has
been built but not yet installed. I don't really think the "invalid PEP 376"
issue is
Carl Meyer added the comment:
>> I don't really think the "invalid PEP 376" issue is a problem: PEP
>> 376 describes the metadata for installed distributions; it has
>> nothing to say about built metadata for a distribution which has not
>> yet been instal
Carl Meyer added the comment:
> Ah, higery’s code already has an answer for me: it writes *two* paths in the
> .pth file, one to the build dir (so that .dist-info is found) and one to the
> modules root (for modules, built in place). Anyone sees a problem with that?
> (For
Carl Meyer added the comment:
> I’ve reviewed the last patch. It looks like the code only installs
> to the global site-packages, and there is no support to install to
> the user site-packages or to another arbitrary location.
>
> On Windows, normal users seem to be able
Carl Meyer added the comment:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> Éric Araujo added the comment:
>
> [Carl]
>> there's an implicit assumption that a .pth file is the most likely
>> strategy.
> If you have other ideas, please share them.
No, I th
New submission from Carl Witty :
PyNumber_Long() (and hence long_new()) are willing to return ints, rather than
longs. However, when long_subtype_new() calls long_new(), it casts the result
to PyLongObject* without a check. (Well, there is an assertion, so if
assertions are enabled you
New submission from Carl Chenet :
Hi,
Could the rsplit() method be mentioned mistakenly two times in the following
sentence of the current What's new in Python 3.2 ?
"The fast-search algorithm in stringlib is now used by the split(), rsplit(),
splitlines() and replace() method
Changes by Carl Meyer :
--
nosy: +carljm
___
Python tracker
<http://bugs.python.org/issue9878>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Carl Meyer :
If python is run with the -S flag, that declares the intent of the user to not
have site-specific additions to sys.path.
However, some code in that process may have a legitimate need for a function
defined in site.py - for instance, addsitedir. But the act of
Changes by Carl Meyer :
--
keywords: +patch
Added file: http://bugs.python.org/file21274/87df1d37c88e.diff
___
Python tracker
<http://bugs.python.org/issue11
Carl Meyer added the comment:
Adding a test is easier said than done. The behavior change here depends on
python being run with -S. Currently test_site skips itself if the test suite is
run with -S, and if I remove that skip it crashes under -S.
Options as I see it:
1. Declare this one
New submission from Carl Meyer :
By opening up pcbuild.sln in VS2008 Express, I was able to successfully build
python and pythonw, but when I tried to build bdist_wininst it failed with
"Fatal Error RC1015: cannot open include file afxres.h"
Googling turned up a number of comments
New submission from Carl Banks :
The issue was raised by J Peyret on the following c.l.python thread:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/459e5ec433e7dcab?hl=en#
Several posters reported that the following code either hangs or crashes Python
(versions 2.7, 2.6
Carl Meyer added the comment:
Added documentation to Doc/library/site.rst and Misc/NEWS.
--
hgrepos: +5
___
Python tracker
<http://bugs.python.org/issue11
Changes by Carl Meyer :
Added file: http://bugs.python.org/file21327/ebe5760afa08.diff
___
Python tracker
<http://bugs.python.org/issue11591>
___
___
Python-bugs-list m
Carl Meyer added the comment:
> Did you have to manually click “Create Patch” to make roundup generate it?
Yes - the first time too.
> Did you try first to click on the button of the existing repo before adding a
> new repo entry?
That would probably have worked fine. The "
Changes by Carl Meyer :
--
nosy: +carljm
___
Python tracker
<http://bugs.python.org/issue6087>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Carl Brewer added the comment:
I know this is closed etc... but Plone (the CMS I use) is tied to various
versions of Python, in particular 2.6 at this time. Having it not build on
Open[Solaris/Indiana] means I can't install current versions of Plone/Zope on
this platform. Any chan
Carl Brewer added the comment:
Plone ships with a "universal installer" which expects particular versions of
python (and PIL etc etc) which makes it easy to build on, for example, many
Linux distros, but it's just not working on Open[Solaris|Indiana] and also
NetBSD (pkgsrc
New submission from Carl Meyer :
The opening paragraph of the "lifecycle of a patch" devguide page contains a
confusing parenthetical aside implying that an "svn-like" workflow would mean
never *saving* anything to your working copy and using "hg diff" to genera
Carl Nobile added the comment:
I have run into this same issue. It does violate RFC2616 in section 4.3 "All
1xx (informational), 204 (no content), and 304 (not modified) responses MUST
NOT include a message-body. All other responses do include a message-body,
although it MAY be of
New submission from Carl Chenet :
Hi,
It seems a mistake could be in the "What's new in Python 3.2" (rc3)
documentation in the sysconfig.get_config_var('SO') example :
>>> sysconfig.get_config_var('SO') # find the full filename extension
'
New submission from Carl Johnson <[EMAIL PROTECTED]>:
Compare the following behaviors:
Python 3.0a5 (r30a5:62856, May 10 2008, 10:34:28)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license
Carl Karsten added the comment:
Another reason to fix: perception. installing to the root looks like a
hack. Installing to the proper place* looks professional.
As for it being hard to type, either add it to PATH or put a .bat file
in the path. I think vista even supports some sort of
Changes by Carl Drougge:
--
components: Library (Lib)
nosy: drougge
severity: minor
status: open
title: posixpath.ismount() claims symlink to .. is mountpoint.
type: behavior
versions: Python 2.4, Python 2.5
__
Tracker <[EMAIL PROTECTED]>
New submission from Carl Drougge:
Sorry, this happened to me in /tmp, where it's actually true, except I
don't expect symlinks to be considered mountpoints, so I still consider
it a bug. Should have tested more though.
--
title: posixpath.ismount() claims symlink to .. is
New submission from Carl Meyer:
Both urllib and urllib2 call urllib.unquote() multiple times on data in
the userinfo section of an FTP URL. One call occurs at the end of the
urllib.splituser() function. In urllib, the other call appears in
URLOpener.open_ftp(). In urllib2, the other two occur
New submission from Carl Johnson <[EMAIL PROTECTED]>:
As recently as Python 2.6.0's release, Python.org had a link to download a
disk image with a special newb-friendly installer for OS X. See
http://www.python.org/download/releases/2.6/
Now, it's gone in Python 2.6.1, and it
New submission from Carl Johnson :
The documentation at http://docs.python.org/library/rlcompleter.html
claims that
Completer.complete(text, state)¶
Return the state*th completion for *text.
If called for text that doesn’t include a period character ('.'), it
will complete
Carl Johnson added the comment:
It seems to me that it isn't tab completion's place to out think the
__dir__ method. A) Because the documentation doesn't tell you that it
does (although you are warned that it may call some stuff) and B)
because if someone set up a __dir__ method
Carl Johnson added the comment:
I think that checking to see which things really exist with
getattr/hasattr made sense back in the days before the __dir__, since in
those days the real API for an object could diverge wildly from what was
reported by dir(object), but nowadays, if someone goes to
Carl Johnson added the comment:
Ah, I see. It does a dir(obj) then tests things to see which are
callable and while it is at that, it removes the names that don't really
exist according to getattr.
Actually, can we go back to the Python 2.5 behavior? I really hate those
auto-added parent
Carl Johnson added the comment:
Is it possible to reopen this bug? Python 3.0.1 still has no Mac installer…
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue4
Carl Johnson added the comment:
What's German for "the squeaky wheel gets the grease"? ;-)
___
Python tracker
<http://bugs.python.org/issue4627>
___
___
Pyt
Carl Johnson added the comment:
Fair enough. In this case though, I'm not complaining for myself, since
I can compile config, make, install source (although I don't know how to
build a Mac Installer, or else I would just do it). I'm complaining on
behalf of all the AppleScript u
Change by Carl Meyer :
--
keywords: +patch
pull_requests: +29891
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31787
___
Python tracker
<https://bugs.python.org/issu
Carl Meyer added the comment:
Draft PR is up for consideration. Perf data in
https://gist.github.com/carljm/987a7032ed851a5fe145524128bdb67a
Overall it seems like the base implementation is perf neutral -- maybe a slight
impact on the pickle benchmarks? With all module global dicts
Carl Meyer added the comment:
Hi Dennis, thanks for the questions!
> A curiosity: have you considered watching dict keys rather than whole dicts?
There's a bit of discussion of this above. A core requirement is to avoid any
memory overhead and minimize CPU overhead on unwatch
Carl Meyer added the comment:
> have you considered watching dict keys rather than whole dicts?
Just realized that I misunderstood this suggestion; you don't mean per-key
watching necessarily, you just mean _not_ notifying on dict values changes. Now
I understand better how that con
Carl Meyer added the comment:
Thanks for outlining the use cases. They make sense.
The current PR provides a flexible generic API that fully supports all three of
those use cases (use cases 2 and 3 are strict subsets of use case 1.) Since the
callback is called before the dict is modified
Carl Meyer added the comment:
I've updated the PR to split `PyDict_EVENT_MODIFIED` into separate
`PyDict_EVENT_ADDED`, `PyDict_EVENT_MODIFIED`, and `PyDict_EVENT_DELETED` event
types. This allows callbacks only interested in e.g. added keys (case #2) to
more easily and cheaply
Carl Meyer added the comment:
> There should not be much of a slowdown for this code when watching `CONST`:
How and when (and based on what data?) would the adaptive interpreter make the
decision that for this code sample the key `CONST`, but not the key `var`,
should be watched in
Carl Meyer added the comment:
Thanks for the extended example.
I think in order for this example to answer the question I asked, a few more
assumptions should be made explicit:
1) Either `spam_var` and/or `eggs_var` are frequently re-bound to new values in
a hot code path somewhere. (Given
Change by Carl Jacobsen :
--
nosy: +CarlRJ
___
Python tracker
<https://bugs.python.org/issue36990>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Carl Anderson :
Fraction works with a regular slash:
>>> from fractions import Fraction
>>> Fraction("1/2")
Fraction(1, 2)
but there are other similar slashes such as (0x2044) in which it throws an
error:
>>> Fraction("0⁄2&q
Carl Anderson added the comment:
from https://en.wikipedia.org/wiki/Slash_(punctuation) there is
U+002F / SOLIDUS
U+2044 ⁄ FRACTION SLASH
U+2215 ∕ DIVISION SLASH
U+29F8 ⧸ BIG SOLIDUS
U+FF0F / FULLWIDTH SOLIDUS (fullwidth version of solidus)
U+1F67C 🙼 VERY HEAVY SOLIDUS
In XML and HTML, the
Carl Anderson added the comment:
I guess if we are doing slashes, then the division sign ÷ (U+00F7) should be
included too.
There are at least 2 minus signs too (U+002D, U+02D7).
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Carl Meyer :
In general it seems the CPython test suite takes care to not fail if the
network is unreachable, but `test_timeout_connect_ex` fails because the result
code of the connection is checked without any exception being raised that would
reach
Change by Carl Meyer :
--
keywords: +patch
pull_requests: +23697
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24937
___
Python tracker
<https://bugs.python.org/issu
New submission from Carl Meyer :
In general it seems the CPython test suite takes care to skip instead of
failing networked tests when the network is unavailable (c.f.
`support.transient_internet` test helper).
In this case of the 5 FTP tests in `test_urllib2net` (that is, `test_ftp
Change by Carl Meyer :
--
title: some tests in test_urllib2net fail instead of skipping on unreachable
network -> ftp tests in test_urllib2net fail instead of skipping on unreachable
network
___
Python tracker
<https://bugs.python.org/issu
Change by Carl Meyer :
--
keywords: +patch
pull_requests: +23699
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24938
___
Python tracker
<https://bugs.python.org/issu
Carl Meyer added the comment:
Created a PR that fixes this by being more consistent in how urllib wraps
network errors. If there are backward-compatibility concerns with this change,
another option could be some really ugly regex-matching code in
`test.support.transient_internet
Carl Anderson added the comment:
>Carl: can you say more about the problem that motivated this issue?
@mark.dickinson
I was parsing a large corpus of ingredients strings from web-scraped recipes.
My code to interpret strings such as "1/2 cup sugar" would fall over every so
Carl Anderson added the comment:
>The proposal I like is for a unicode numeric normalization functions that
>return the ascii equivalent to exist.
@Gregory P. Smith
this makes sense to me. That does feel like the cleanest solution.
I'm currently doing s = s.replace("⁄"
Change by Carl Schaefer :
--
nosy: +carlschaefer
___
Python tracker
<https://bugs.python.org/issue17088>
___
___
Python-bugs-list mailing list
Unsubscribe:
Carl Meyer added the comment:
> Are Final default_factory fields real fields or pseudo-fields? (i.e. are they
> returned by dataclasses.fields()?)
They are real fields, returned by `dataclasses.fields()`.
In my opinion, the behavior change proposed in this bug is a bad idea all
aroun
Carl Meyer added the comment:
Good idea to check with the PEP authors.
I don’t think allowing both ClassVar and Final in dataclasses requires general
intersection types. Neither ClassVar nor Final are real types; they aren’t part
of the type of the value. They are more like special
Change by Carl Harris :
--
nosy: +hitbox
___
Python tracker
<https://bugs.python.org/issue39318>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Carl Meyer :
Currently the "symtable entry" extension type (PySTEntry_Type) defined in
`Python/symtable.c` defines no `tp_new` or `tp_init`, making it impossible to
create instances of this type from Python code.
I have a use case for pickling symbol tables (as
Change by Carl Harris :
--
nosy: +hitbox
___
Python tracker
<https://bugs.python.org/issue35799>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Carl Tyndall :
--
pull_requests: +17809
pull_request: https://github.com/python/cpython/pull/18435
___
Python tracker
<https://bugs.python.org/issue3
Carl Meyer added the comment:
> Anything that is touched by the immortal object will be leaked. This can also
> happen in obscure ways if reference cycles are created.
I think this is simply expected behavior if you choose to create immortal
objects, and not really an issue. How cou
Carl Meyer added the comment:
> An immortalized object will never start participating in reference counting
> again after it is immortalized.
Well, "passed to an extension compiled with no-immortal headers" is an
exception to this.
But for the "not GC tracked but lat
Carl Meyer added the comment:
> This may break the garbage collector algorithm that relies on the balance
> between strong references between objects and its reference count to do the
> calculation of the isolated cycles.
I don't think it really breaks anything. What happe
Carl Meyer added the comment:
I think the concerns about "perfect" behavior in corner cases are in general
irrelevant here.
In the scenarios where this optimization matters, there is no quantitative
change that occurs at 100% coverage. Preventing 99% of CoW is 99% as good as
prev
Carl Meyer added the comment:
> Is it a common use case to load big data and then fork to use preloaded data?
A lot of the "big data" in question here is simply lots of Python
module/class/code objects resulting from importing lots of Python modules.
And yes, this "
Carl Meyer added the comment:
> I would be interested to hear the answer to Antoine's question which is
> basically: why not using the multiprocessing fork server?
Concretely, because for a long time we have used the uWSGI application server
and it manages forking worker proce
1 - 100 of 281 matches
Mail list logo