Chris added the comment:
found this issue while googling the error. Also having the same problem with
as_bytes() breaking on non-ascii characters.
I've tried policy=policy.default.clone(utf8=True) but it gives the same error.
My sample.py file attached contains a string sample
Changes by chris :
--
nosy: +chris
___
Python tracker
<http://bugs.python.org/issue8668>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Chris :
Hi, I just installed Python 3.1.1 via link in the book Python Programming for
the absolute beginner third edition. But Idle won't start. When I try to open
Idle the Windows "hourglass" just flash briefly but nothing happens after that.
No erro
Chris added the comment:
Hi, thank you for your reply.
Â
I try to start it directly from the start menu, where it jumped to after the
first open attempt, and have also tried start menu -Â all programs - python -
idle, then one click or right click then chosing open. Nothing works.
Â
The
Chris added the comment:
Can you please guide me step by step - how and where exactly do I open a
command prompt?
Â
--- On Mon, 3/7/11, Amaury Forgeot d'Arc wrote:
From: Amaury Forgeot d'Arc
Subject: [issue11413] Idle doesn't start
To: ceonnbo...@yahoo.com
Date: Monday, M
Chris added the comment:
Thank you, here is the message I got:
Â
Â
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Ceonn>c:\python32\python.exe -m idlelib.idle
Traceback (most recent call last):
 File "c:\python32\lib\runpy.p
Chris added the comment:
In the Control Panel - System - Advanced - Environment Variables I find
variables:
Â
PYTHONCASEOK,
--- On Tue, 3/8/11, Amaury Forgeot d'Arc wrote:
From: Amaury Forgeot d'Arc
Subject: [issue11413] Idle doesn't start
To: ceonnbo...@yahoo.com
Date: T
Chris added the comment:
Sent previous message before it was finished, will resend, got to go now though.
--- On Tue, 3/8/11, Amaury Forgeot d'Arc wrote:
From: Amaury Forgeot d'Arc
Subject: [issue11413] Idle doesn't start
To: ceonnbo...@yahoo.com
Date: Tuesday, March 8,
New submission from Chris <[EMAIL PROTECTED]>:
Hi,
Our group ended up needing a non-universal x86_64 framework build
because we had trouble building some modules with the non-framework
build. We had to modify the makefile in two places to get it to work.
First we fixed a place
New submission from Chris <[EMAIL PROTECTED]>:
IDLE just won't open in 2.6 for me. The command line works but not the
GUI. It works in 2.5.2 though. I am a neophyte, any help is much
appreciated.
--
messages: 74357
nosy: Chris_L
severity: normal
status: open
title: IDLE does
New submission from Chris :
I'm using ssl.get_server_certificate function. It returns a pem string. For
each server I try, I get the string, but it is missing a newline "\n" before
the -END CERTIFICATE- text. Any subsequent use of the string makes
openssl throw up with
Chris added the comment:
Did some more research and found this as the culprit:
in Lib/ssl.py
#
...
def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None):
...
return DER_cert_to_PEM_cert(dercert)
def DER_cert_to_PEM_cert(der_cert_bytes
New submission from chris <[EMAIL PROTECTED]>:
http://docs.python.org/3.0/library/stdtypes.html#str.translate
mentions the following:
"You can use the maketrans() helper function in the string module to
create a translation table."
But maketrans is now a string method not ju
New submission from Chris :
This is related to https://bugs.python.org/issue22970,
https://bugs.python.org/issue33638, and https://bugs.python.org/issue32751.
I've replicated the issue on Python 3.6.9, 3.7.4, and 3.8.0. Looking at the
source, I'm fairly sure the bug is still in ma
chris added the comment:
Great content and outstanding, How can I start getting your https://logingit.com/www-txsurchargeonline-com-login-tx-surcharge-pay/";>newsletters
in my email to enable keep track of your future content? Thank for this great
piece.
--
nosy
chris added the comment:
Great and I look forward to getting more content. Incredibly great.
https://logingit.com/dish-network-login/
--
___
Python tracker
<https://bugs.python.org/issue37
New submission from chris :
How do I start creating my own code, is there tutorial for this?
https://logingit.com/amazon-from-a-to-z-www-atoz-amazon-work/
--
messages: 360768
nosy: Nadas
priority: normal
severity: normal
status: open
title: Great
New submission from chris :
I'm linking an issue from numpy here: https://github.com/numpy/numpy/issues/8097
Embedding python suffers from a possibility to reliably reset the state of the
python interpreter. For my use case, I noticed that when using numpy with
Py_Initialize(
chris added the comment:
Thanks for your comments and the link to the issue from the year 2000.
> You mention "embedded python interpreter", but it sounds more like you mean
> "embedded python runtime"
Yes that's right. Sorry for imprecise wording.
> Why
chris added the comment:
Okay, completely restarting python is not really necessary. Being able to
reliably unload and later on re-import python modules (extension modules as
well as pure python modules) in an embedded python runtime would solve my
problems.
One way to achieve that is
chris added the comment:
For short-term / mid-term we have now decided to start python as seperate
process and interact with some kind of IPC. That leads to a limited interaction
model between python and the embedded app but it has the advantage that
unloading is possible (by simply
New submission from Chris:
http://stackoverflow.com/questions/11884864/python-multiprocessing-creates-incorrect-pids
Jesse Noller suggested that I submit this stack overflow as a bug so it can be
examined. As the problem is kind of domain specific, it's not easy to come up
with a test
Chris added the comment:
That they don't appear in top. I was using that as a proxy for existence. I
wrote a test case without R and realized (accidentally) that tracebacks will
now flow up to the main process from the worker processes (which makes perfect
sense, actually). I
Chris added the comment:
Using top/'ps aux' is not the issue. I have code running now with the
try/except. Will report back ASAP. I suspect that you're correct about
something in the R pipeline failing. Hopefully, I'll
Chris added the comment:
Also, when I said "...that tracebacks will now flow up to the main process from
the worker processes (which makes perfect sense, actually)", I meant to say
"...that tracebacks will NOT flow up to the main process from the worker
processes (which make
Chris added the comment:
Ugh, a server reboot seems to have cleared this all up (FML). It's been
running well past the point of previous failure. I suppose I'll never know why
it was failing. I'm going to close this out. Thanks for your time in helping
me thi
Chris added the comment:
I would be interested in tackling this as a first patch, can you give me some
more information?
--
nosy: +chrishood
___
Python tracker
<http://bugs.python.org/issue19
Chris added the comment:
I think I'll look for some other issues, this one looks a bit deep for a first
patch.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Chris :
I have recently installed python 2.6 and I have been successfully able
to run python from a command line and from the Python command line.
However, when I try to launch the IDLE, all I get is a window that
flashes. I tried launching the IDLE from a command line
Chris added the comment:
Amaury,
That worked, the variable was for IBMTools, so I am a little concerned that
some other program may have issues. If I do have problems, I will just add the
variable back.
Thanks for getting back to me.
- Chris
- Original Message
From: Amaury
New submission from Chris :
i am trying to learn to program in Python from a book on programming that says
to use Python 3
i downloaded the Python 3.1.2 Windows x86 MSI installer for my machine aka an
HP DV2500 running Win 7
it runs fine, but when i try to write the test program from my
New submission from Chris:
argparse does not handle Store actions correctly when "nargs = 1" is provided.
The documentation indicates the value should be assigned to the dest, but
instead a list with the value as the only item is assigned to dest.
--
files: test_argparse.p
Change by Chris Roberts :
--
nosy: +nasageek
___
Python tracker
<https://bugs.python.org/issue36225>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Satterlee added the comment:
FYI, it appears that 8.6.11 works ok with MacOS 12.1 (released on 13-Dec-2021).
8.6.12 also works with MacOS 12.1. I have not tested either extensively,
however.
--
nosy: +csatt
___
Python tracker
<ht
New submission from Chris Drake :
See https://github.com/python/pythondotorg/issues/1774#issuecomment-1025250329
--
components: macOS
messages: 412257
nosy: cryptophoto, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Instructions do not work
versions
Chris Drake added the comment:
So it looks like a dependency error in the installer then?
It obviously makes no sense for pip to required before the python installer can
work - chicken-and-egg issue - the installer should install what it needs of
course, which I guess includes pip if that
Chris Larson added the comment:
Has there been any work/progress on this? Alternatively, what suggested work
around/mitigations are suggested?
--
nosy: +cklarson
___
Python tracker
<https://bugs.python.org/issue13
Chris Jerdonek added the comment:
> I note that there is no documented way to retrieve the cancel message
Does retrieving it from the CancelledError that is bubbling up suffice? Or do
you need to be able to obtain it from the future object?
--
nosy: +chris.jerdo
Chris Jerdonek added the comment:
> I'm not sure yet (if anything I'd need it for a task, not a future).
(By future, I also meant task, as task inherits from future.) For now, I think
it would be safer to get the message from the CancelledError, if possible,
since how it gets t
Chris Jerdonek added the comment:
Andrew, the approach I described would I feel be much better. It would result
in more concise, less verbose tracebacks, as opposed to more verbose -- not
just because the message won't be repeated, but also because it eliminates the
unneeded creati
Chris Jerdonek added the comment:
I don't really understand all the hate around the idea of a cancel message. One
reason it's useful is that it provides a simple way to say *why* something is
being cancelled or *what* is cancelling it. It provides additional context to
the excepti
Chris Jerdonek added the comment:
For future reference, with Andrew's change merged above, the traceback for the
example snippet in my message above:
https://bugs.python.org/issue45390#msg403570
is now the following. Observe that (1) the call to sleep() continues to be
present, b
Chris Leary added the comment:
Hi Vinay,
I was actually trying to address a use case where the delay_fh option in
the fileConfig() would be necessary.
Let's say I'm running a simulator that I run many instances of at once.
The logging configuration is extensive, so I wan
Chris Leary added the comment:
Ah, I see what the miscommunication is now.
Yes, implementing the feature as you suggested would give the user the
ability to specify the delayed handle-opening /within/ the configuration
file. What I had intended was a way to load/inspect a file configuration
New submission from Chris Withers:
The attached script demonstrates the bug.
option.dest should be set, even if not explicitly supplied in the call
to parser.add_option, by the time the callback is called.
Unless dest='something' is specified in the call to add_option, you wi
Chris Withers added the comment:
I'm not sure I fully understand where the fix should go but I'll put a
note in to look into this.
In the meantime, a good workaround is to supply an explicit destination:
parser.add_option('--myopt',action='callback',c
Chris Withers added the comment:
But what type should I specify?
I was using a callback to get a datetime object as an option...
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
New submission from Chris Stawarz:
The current version of the ssl module doesn't support non-blocking
creation of SSLSocket objects. The reason for this is that the SSL
handshaking (SSL_connect/SSL_accept) takes place during the
construction of the SSLContext object (in newPySSLObject).
Chris Stawarz added the comment:
Yeah, the pattern for doing non-blocking I/O with select() is
different for SSL-wrapped sockets: You always have to try the
potentially-blocking operation first, and then call select() and
retry in response to SSL_ERROR_WANT_READ/WRITE. (You can also
Chris Stawarz added the comment:
I meant that SSL-wrapped sockets must be set non-blocking in the case
where you want to do non-blocking I/O with them using select(). This
is another difference between SSL-wrapped sockets and normal
sockets. With a normal socket, as long as you use
Chris Stawarz added the comment:
> The loop in _ssl.c/do_handshake will never return WANT_READ or
> WANT_WRITE, so the loop in the test case, for instance, is
> unnecessary.
I don't know why you think that, but it's easy enough to show that
this statement is incorrect.
Chris Stawarz added the comment:
Bill,
You seem to be missing the whole point of doing non-blocking I/O,
which is to handle multiple concurrent, I/O-bound tasks in a single
OS thread. The application must be able to try the handshake, detect
that it didn't complete because I/O nee
New submission from Chris Mellon:
One of the most common requests in c.l.p and #python is a way to break
an iterable up into some particular size chunks. For example, "abcdef"
-> "ab", "cd", "ef". It's pretty easy to write one, but there are a f
Chris Mellon added the comment:
In funcobject.c:PyFunction_New, the declarations of op and __name__ need
to be moved to the top of the function to compile in MSVC, and if
accepted the fastglobals.c file needs to be added to PCBuild.
In the test script, the use of import * generates syntax
Chris Mellon added the comment:
I may have had some old code in the build or something - I did a clean
rebuild to look at some of the slowdowns and the fastglobals_test
benchmarks are now even better than Neils. Pybench is still overall
slower but it's mostly in float operations, which seem
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12961>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Is format() really the best choice here, considering that {}s already have a
meaning in the shell?
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13
New submission from Chris Clark :
I ended up implementing my own sched.py equivalent as I needed kwargs support.
This is my attempt to improve the stdlib, so I can throw my module way ;-)
Added kwargs support, and made "argument" optional. "argument" is still named
argum
New submission from Chris Piekarski :
Shelve object second tier array subscript key generation doesn't behave the
same way dictionary object do.
>>> import shelve
>>> x = shelve.open("tst1.shelve")
>>> x["one"] = {}
>>> x
{'o
Changes by Chris Miles :
--
nosy: -chrismiles
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue10364>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13535>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13658>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12857>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12760>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue9922>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Scouting around the CPython codebase a bit, I speculate that the cause of this
behavior is that PyErr_GivenExceptionMatches() in errors.c uses
PyType_IsSubtype() [which simply walks a class's __mro__ checking for pointer
equality] rather
Chris Rebert added the comment:
Slight tangent: Regarding os.popen()'s [documentation] status, there's a bug
for that: http://bugs.python.org/issue9382
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.o
Chris Rebert added the comment:
Surveying the docs, the current behavior *is* /technically/ correct (in a
suspiciously precise way) according to the Language Reference:
http://docs.python.org/dev/reference/compound_stmts.html#grammar-token-try_stmt
:
"For an except clause with an expre
New submission from Chris Angelico :
An anomaly in the argument types of similar functions:
PyImport_ImportModuleLevel takes char *, while the related functions
PyImport_AddModule, PyImport_ImportModule, and PyImport_ImportModuleNoBlock all
take const char *. This made a nuisance of itself
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12192>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Per msg129958, attached is my stab at a patch to replace most uses of
os.popen() with the subprocess module. The test suite passes on my Mac, but the
patch does touch some specific-to-other-platform code, so further testing is
obviously needed.
This is my
Chris Withers added the comment:
Just got bitten by this as well, what still needs to happen with the patch?
--
keywords: -easy
nosy: +cjw296
___
Python tracker
<http://bugs.python.org/issue2
Chris Withers added the comment:
Hmm, I'd argue it's a bug:
File "/usr/lib64/python2.5/urllib2.py", line 972, in get_algorithm_impls
return H, KD
UnboundLocalError: local variable 'H' referenced before assignment
...does not say anything like:
"The di
Chris Withers added the comment:
...which is, of course, rather disappointing.
When *would* md5-sess land? 2.7? 3.3?!
--
___
Python tracker
<http://bugs.python.org/issue2
Chris Withers added the comment:
Who with and where does the argument need to be had?
--
___
Python tracker
<http://bugs.python.org/issue2202>
___
___
Python-bug
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue3177>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: -cvrebert
___
Python tracker
<http://bugs.python.org/issue1170>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Lambacher added the comment:
I don't think that is the default state. You need to add .py to the PATHEXT
environment variable:
http://effbot.org/pyfaq/how-do-i-make-python-scripts-executable.htm
Maybe Terry did this at some point? My windows box certainly does not have it
and I
Chris Lambacher added the comment:
> Now my concern is about packaging: In a typical Windows install, can people
> run “pysetup3 spam”?
The windows installer does not make any additions to the path so it is unlikely
that "pysetup3 spam" will work.
There is http://www.python.
Chris Lambacher added the comment:
> I am not sure of the difference between 'local script' and 'global command'
local script is the setup.py (or for that matter any other script in an
arbitrary place in the filesystem. Global command is referring to something
install
Chris Lambacher added the comment:
Senthil: I think that would fundamentally make things worse. The HTML calendar
apparently always provides a bytes type, but lets assume it provided you with
unicode and we used sys.stdout.write on the output. Fundamentally you would get
the same behavior as
Chris Lambacher added the comment:
Senthil: I wasn't advocating the removal of the ability to specify encoding,
only stating that avoiding the use of sys.stdout.buffer.write could only
sensibly be done if we also removed the ability to specify an encoding (I can
see how my wording might
Changes by Chris Palmer :
--
nosy: -cpalmer
___
Python tracker
<http://bugs.python.org/issue670664>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Waigl :
--
nosy: +Chris.Waigl
___
Python tracker
<http://bugs.python.org/issue3244>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Adjusted patch per R. David's comment.
I obviously think it should be a full red warning box (that's how it is in my
patch), but my opinion clearly isn't an outside one.
Also, Ping/Bump on finally getting this applied.
--
A
New submission from Chris Leary :
I tried to clear this section up a bit in light of the confusion here:
http://stackoverflow.com/q/3687864/3594
Not sure if it applies to 3k trunk.
First documentation patch, be sure to lmk what I'm doing wrong! :-)
--
assignee: d...@python
compo
Chris Leary added the comment:
Okay, neat! I put them in that order so that they would correspond to the
parameters to ``LogRecord.__init__`` -- do we usually do alphabetical instead?
--
___
Python tracker
<http://bugs.python.org/issue9
Changes by Chris Gerhard :
--
nosy: +Chris.Gerhard
___
Python tracker
<http://bugs.python.org/issue4761>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Withers added the comment:
This is a regex bug, and it just bit me again :-(
Because of this bug, you cannot currently build a bdist_egg (and therefore
cannot install with easy_install) http://pypi.python.org/pypi/buildout-versions
on windows.
The only choice I have is to rename the
Chris Withers added the comment:
So, the workaround I gave doesn't work, because this stupid regex still knocks
out all the egg-info. The only solution is to use that accidentally employed by
http://svn.plone.org/svn/collective/buildout/buildout.dumppickedversions/trunk/
and put any
Chris Withers added the comment:
Okay, so here's the patch:
Change line 352 on distutils/filelist.py from:
pattern_re = "^" + os.path.join(prefix_re, ".*" + pattern_re)
To:
pattern_re = "^"+prefix_re+re.escape(os.sep)+".*"+pattern_
Changes by Chris Gerhard :
--
nosy: +Chris.Gerhard
___
Python tracker
<http://bugs.python.org/issue1236>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
"the above Note" mentioned in those last two lines demonstrates shlex.split()
and correct tokenization.
--
___
Python tracker
<http://bugs.python.
New submission from chris nojima :
There is an issue where on windows os.environ keys are all uppercase. If i run
set a="hello", in python it will appear as a key "A".
urllib.request.getproxies_environment looks for all _proxy environment vars by
looking for "_proxy&q
chris nojima added the comment:
Sorry. You are correct, this must have been fixed in 3.1.2. The box I was on
had 3.1.1 on it and some other configuration issues led me to believe this was
happening in 3.2 as well.
--
resolution: -> fixed
status: open ->
Chris Withers added the comment:
Terry,
My original post was not about *temporary* output inserted for debugging, but
test mocks and the like which form a permanent part of the test and which
output to stdout.
cheers,
Chris
--
___
Python
New submission from Chris Colbert :
The cmp_to_key func acts as a class factory for generating key objects that
behave according to a user defined cmp function.
Many patterns/libs that make use of key functions (for example blist and the
SortedCollection recipe) store the the results of the
Chris Colbert added the comment:
Man, you guys are quick! Cheers!
--
___
Python tracker
<http://bugs.python.org/issue11628>
___
___
Python-bugs-list mailin
Chris Lambacher added the comment:
copied to pywin32 bug tracker:
http://sourceforge.net/tracker/index.php?func=detail&aid=3238774&group_id=78018&atid=551954
--
nosy: +lambacck
___
Python tracker
<http://bugs.python.o
1 - 100 of 2758 matches
Mail list logo