Charlie Zhao added the comment:
I started a PR and some simple examples were added. It is helpful for those who
are new to IEEE-754.
According to Jelle's comments, the behavior of `float('nan') is float('nan')`
may be changed in the future, so I just omit it and suggest users to use
Change by Charlie Zhao :
--
keywords: +patch
pull_requests: +30248
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32170
___
Python tracker
<https://bugs.python.org/issu
Charlie Zhao added the comment:
> "Due to the requirements of the `IEEE-754 standard
> <https://en.wikipedia.org/wiki/IEEE_754>`_, math.nan and float('nan') are
> never equal to any other value, including themselves. Use math.isnan to test
> for NANs."
It seems
Change by Charlie Zhao :
--
pull_requests: +29913
pull_request: https://github.com/python/cpython/pull/31815
___
Python tracker
<https://bugs.python.org/issue46
Change by Charlie Zhao :
--
pull_requests: +29907
stage: backport needed -> patch review
pull_request: https://github.com/python/cpython/pull/31808
___
Python tracker
<https://bugs.python.org/issu
Change by Charlie Yan :
--
components: +Library (Lib)
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue46926>
___
___
Python-bugs-list mai
Change by Charlie Yan :
--
title: runpy.run_path didn't set __package__ as describe in doc ->
runpy.run_path didn't set __package__ to None as describe in doc
___
Python tracker
<https://bugs.python.org/issu
New submission from Charlie Yan :
As described in the doc:
https://docs.python.org/3.8/library/runpy.html#runpy.run_path
> If the supplied path directly references a script file (whether as source or
> as precompiled byte code), then __file__ will be set to the supplied path,
> and
Change by Charlie Zhao :
--
keywords: +patch
pull_requests: +29498
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31349
___
Python tracker
<https://bugs.python.org/issu
Charlie Zhao added the comment:
Indeed, if you use Python keywords or other invalid Python names as keys of
TypedDict, we must use the equivalent forms as follows:
```
Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'in': str}) # OK
Point2D = TypedDict('Point2D', x=int, y=int, in=str
Change by Charlie Zhao :
--
pull_requests: +29161
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30982
___
Python tracker
<https://bugs.python.org/issu
Charlie Clark added the comment:
I can confirm that using "de-DE" does indeed avoid the crash.
--
___
Python tracker
<https://bugs.python.o
Charlie Clark added the comment:
This is the result
\issue36792>test.exe
The current locale is now: C
The time zone is: 'Mitteleuropõische Sommerzeit' (28 characters)
The updated locale is now: de_DE
The time zone is: '' (-1 characters)
NB something is wr
Charlie Clark added the comment:
And this is the result.
old locale: C
count: 28
value: Mitteleuropäische Sommerzeit
new locale: de_DE
count: -1
value:
Windows fatal exception: code 0xc374
Looks like
print('new locale:', crt_locale._wsetlocale(0, 'de_DE'))
print('count
Charlie Clark added the comment:
print('count:', crt_time.wcsftime(wbuf, 1024, '%Z', tm)) also fails
but
crt_convert = ctypes.CDLL('api-ms-win-crt-convert-l1-1-0', use_errno=True)
print('count:', crt_convert.mbstowcs(wbuf, buf, 1024))
seems to work okay
Charlie Clark added the comment:
If the process crashes at the first print statement, I'm not sure how I can run
the tests. Or should I try them separately?
--
___
Python tracker
<https://bugs.python.org/issue36
Charlie Clark added the comment:
The code crashes on this line:
print('count:', crt_time.strftime(buf, 1024, b'%Z', tm))
--
Added file: https://bugs.python.org/file48306/Report.wer
___
Python tracker
<https://bugs.python.org/issue36
Change by Charlie Clark :
Added file:
https://bugs.python.org/file48307/WER9DB9.tmp.WERInternalMetadata.xml
___
Python tracker
<https://bugs.python.org/issue36
Charlie Clark added the comment:
import ctypes, struct
libc = ctypes.cdll.msvcrt
buf = ctypes.create_string_buffer(1024)
tm = struct.pack('9i', 2019, 5, 6, 9, 50, 4, 0, 126, 1)
print('count:', libc.strftime(buf, 1024, b'%Z', tm))
print('value:', buf.value)
wbuf = ctypes.create_unicode_buffer
Charlie Clark added the comment:
import ctypes, struct
libc = ctypes.cdll.msvcrt
buf = ctypes.create_string_buffer(1024)
tm = struct.pack('9i', 2019, 5, 6, 9, 50, 4, 0, 126, 1)
print('count:', libc.strftime(buf, 1024, b'%Z', tm))
print('value:', buf.value)
count: 28
value: b'Mitteleurop
Charlie Clark added the comment:
import time, locale
locale.setlocale(locale.LC_ALL, 'de_DE')
'de_DE'
time.strftime("%Z")
aborted (disconnected)
--
___
Python tracker
<https://bugs.python.o
Charlie Clark added the comment:
I can confirm the error is caused by time.localtime(time.time()) as indicated
by the related bug.
I've also found the crash log. It's in
C:\ProgramData\Microsoft\Windows\WER\ReportQueue on my machine. Well, at least
that's all I can find.
--
Added
Charlie Clark added the comment:
winver tells me I have 1809. I'm only using Windows in a VM so I'm not that
familiar with its innards.
Also get the error with WinPython 3.6:
Windows fatal exception: code 0xc374
Current thread 0x10c0 (most recent call first):
File "C:\
Charlie Clark added the comment:
That's what we thought when we looked at it, but as I said, I couldn't
reproduce it with just the `time` call or the `ZInfo` instantiation, so
something odd is happening. I do have a German version of Windows as I suspect
the original reporter does. You'd
Charlie Clark added the comment:
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit
(Intel)] on win32
--
___
Python tracker
<https://bugs.python.org/issue36
New submission from Charlie Clark :
Based on a bug report
(https://bitbucket.org/openpyxl/openpyxl/issues/1266/locale) from a user of the
openpyxl library I've identified a bug in the zipfile module that causes the
Python process to crash on Windows. Currently tested with Python 3.7.3 (32
To All,
I'm announcing the first release of TkGridGUI.
I consider it to be Alpha code, but still very usable.
TkGridGUI is a graphic user interface for creating python Tkinter
applications.
The user creates a fully "wired" python Tkinter GUI application by placing
widgets into a hierarchical
Change by Charlie Dyson :
--
nosy: +cdyson37
___
Python tracker
<https://bugs.python.org/issue24564>
___
___
Python-bugs-list mailing list
Unsubscribe:
Charlie Dyson added the comment:
As an aside, should that be sys.path.insert(1, X)? As 0 has a special meaning
(I've often thought this is a slightly odd convention).
Another aside: I noticed this because I was looking to write a module finder,
and thought I could extract one out
Charlie Proctor added the comment:
I agree that the message is slightly misleading.
Uploading one possible solution. I'm sure someone more familiar with the
library might have a better approach...
--
keywords: +patch
nosy: +charlie.proctor
Added file: http://bugs.python.org/file45357
Charlie Proctor added the comment:
I broke the two cases (interrupt_main from test thread and from sub-thread)
into two separate tests, using an "expect_sigint" helper.
Let me know what you think -- thanks!
--
Added file: http://bugs.python.org/file45354/test_interrupt_
Charlie Proctor added the comment:
To clarify further, the SIGALRM handler catches the timeout sent by the
ITIMER_REAL... whereas the SIGINT handler catches the interrupt_main() signals.
--
___
Python tracker <rep...@bugs.python.org>
Charlie Proctor added the comment:
Thanks for the feedback David!
I've posted a revised patch with more descriptive comments and the restoration
code moved into addCleanup.
As described in the comments, in the context of this test, the "main" thread is
the one running the test s
Charlie Proctor added the comment:
Found this through the "Random Issue" button -- I've uploaded a simple test
case for thread.interrupt_main().
This is my first patch :) So let me know if there's something else I should do
and I'd love to hear any feedback...
--
keywor
On Sunday, February 2, 2014 9:46:24 PM UTC, Gary Herron wrote:
On 02/02/2014 01:16 PM, Charlie Winn wrote:
Hey Guys i Need Help , When i run this program i get the 'None' Under the
program, see what i mean by just running it , can someone help me fix this
def Addition
On Monday, February 3, 2014 6:17:44 PM UTC, Joel Goldstick wrote:
On Feb 3, 2014 1:05 PM, Charlie Winn charli...@gmail.com wrote:
On Sunday, February 2, 2014 9:46:24 PM UTC, Gary Herron wrote:
On 02/02/2014 01:16 PM, Charlie Winn wrote:
Hey Guys i Need Help , When i run
Hey Guys i Need Help , When i run this program i get the 'None' Under the
program, see what i mean by just running it , can someone help me fix this
def Addition():
print('Addition: What are two your numbers?')
1 = float(input('First Number:'))
2 = float(input('Second Number:'))
I have just released a new project on Sourceforge called XYmath at:
https://sourceforge.net/p/xymath/xywiki/Home/
XYmath will find the best curve fit using either minimum percent error or
minimum total error. It can search through common equations, an exhaustive
search through thousands of
New submission from Charlie Dimino:
http://docs.python.org/2/howto/argparse.html
Error message in the first example is outdated, may indicate further out of
date information on page.
Example:
The tutorial says:
prog.py: error: the following arguments are required: echo
When the actual error
Charlie Dimino added the comment:
If it's okay, don't close this just yet. I'm new to this system but I'll submit
a patch with any fixes to the tutorial I find.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16863
New submission from Charlie Clark charlie.cl...@clark-consulting.eu:
It says in the docs:
This read-only attribute provides the column names of the last query. To
remain compatible with the Python DB API, it returns a 7-tuple for each column
where the last six items of each tuple are None
This is what seems like an odd bug, but in code I'd thing often-enough used it
must be the expected behavior and I just don't understand. Please,
sirs/mesdames, is this a bug?
Example code:
begin code ---
#!/usr/bin/env python
@-character WTF?
import sys
Oops, forgot the python version etc:
bash $ /usr/bin/env python -V
Python 2.7
On SuSE 11.4
bash $ uname -a
Linux crmartin 2.6.37.6-0.9-desktop #1 SMP PREEMPT 2011-10-19 22:33:27 +0200
x86_64 x86_64 x86_64 GNU/Linux
--
http://mail.python.org/mailman/listinfo/python-list
Hi,if I have a class A that contains a boolean variable named x, is it safe
to read and change it from different threads without using locks?
Is it guaranteed that A.x will be always True or False, and not any other
weird value that that causes it to be inconsistent (assuming I only set it
to True
that it will stop
entering the loop sometime (I don't care if there are n iterations or n+1 or
even n+m)
Thanks
On Wed, Sep 30, 2009 at 10:44 AM, steve st...@lonetwin.net wrote:
Hi,
On 09/30/2009 01:53 PM, Charlie Dickens wrote:
Hi,
if I have a class A that contains a boolean variable named x
Esmail ebonak at hotmail.com writes:
Charlie wrote:
You might also look at:
http://pyparasol.sourceforge.net/example_1.html
Thanks for this lead, I had never heard of parasol before. Do you know
if this also works under Linux? The docs mention only the Windows platform,
but given
Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au writes:
On Sat, 23 May 2009 09:22:59 -0400, Esmail wrote:
Hello all,
I would like to maximize or minimize a given math function over a
specific set of values, in Python preferably.
...
What it apparently can't do is for
Parasol is a python framework in which mathematical models can be
investigated parametrically. Parasol enables easy optimization, sensitivity
study, and visualization. The math model can be as big or as small as
desired. Output is generated in plain text, HTML, and native Microsoft Suite
files
Nowhere in your code is the definition of binary_op - that is why you
get a linker error.
Is it defined in another C file? If so you need to link it with the
swig wrapper before you make the .so
Thanks for pointing out. I sorted the code out finally!
Charlie
--
http://mail.python.org
But when I try to import test in python, it complains:
import _test
ImportError: ./_test.so undefined symbol: _Z9binary_opiiPFiiiE
The above is a mangled name so you've got some C vs C++ problems I'd
say.
You could try putting some extern C {} in around all the functions
which are
It is really strange to me. I am a novice swigger but I really need
its power to accelerate my development. Could anybody point out where
my problem is?
TIA
Charlie
--
http://mail.python.org/mailman/listinfo/python-list
That hardware battle was fought long ago. Von Neumann machine vs. the Lisp
machine. Guess who won?
http://en.wikipedia.org/wiki/Lisp_machine
It would be very hard to fight that war all over again.
Charlie
On Fri, Jun 6, 2008 at 4:59 PM, Jan Claeys [EMAIL PROTECTED] wrote:
Op Fri, 23 May
Has anyone installed a version of biggles on Windows with python 2.5?
The Martin Lamar version for python 2.3 was a big help, but I finally
upgraded to python 2.5 and I am having trouble with the biggles build.
Thanks,
Charlie
--
http://mail.python.org/mailman/listinfo/python-list
Jython the same set of language features as Python 2.2.
For a more complete list of the additions from 2.1 to 2.2, see the
NEWS file in the release. Only the version numbers changed in the
code from 2.2rc3 to this release.
Enjoy!
Charlie
--
http://mail.python.org/mailman/listinfo/python-announce
Thank you everybody for your help. It finally runs without errors and
I should be able to use this as I figure out more of it. I am curios
if there is any idea as to when GetString will be implemented?
Charlie
--
http://mail.python.org/mailman/listinfo/python-list
Quoting Martin v. Löwis [EMAIL PROTECTED]:
Charlie schrieb:
Thank you everybody for your help. It finally runs without errors and I
should be able to use this as I figure out more of it. I am curios if
there is any idea as to when GetString will be implemented?
If I can find the time
Quoting Lamonte Harris [EMAIL PROTECTED]:
Been a while and I'm wondering how I would go about doing it.
py2exe seems to be a fairly good option for this, at least in the
world of Windows.
--
http://mail.python.org/mailman/listinfo/python-list
to find one? If there isn't one, would anybody be willing
to throw one together?
Thanks
Charlie
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the help. That definitely gets me on the right track. I am
having an issue though. I keep getting the error that
MSIDBOPEN_READONLY is not defined.
Here is my code for testing. Am I missing something really obvious or
is something just not working that should and my system is
Thanks for pointing that out. It solved the one problem and along came
another. Now I get the following error when I try running it. Thanks
for the help.
Traceback (most recent call last):
File msi.py, line 7, in module
record = view.Fetch()
_msi.MSIError: function failed
--
as an argument, especially for a select statement. Thanks for
the help.
Charlie
--
http://mail.python.org/mailman/listinfo/python-list
called before connect don't
respect SO_REUSEADDR
- execfile() throws a NullPointerException in the interactive console
Enjoy!
Charlie
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
features a new socket module with support for
non-blocking sockets and SSL as well as many bug fixes.
Enjoy!
Charlie
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
the 2.2 version of
Jython. It includes fixes for more than 30 bugs found since the first
beta and the completion of Jython's support for new-style classes.
Enjoy!
Charlie
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http
catch_raise_exception, (in my
case at 0x2030 under gdb). The problem is when exc_server calls
catch_raise_exception it calls the one from the python binary and not
the one I provided and dies. Does anyone have any ideas on how to deal
with this perplexing problem?!?
Thanks!!!
Charlie
--
http
Below is a simple program that will cause python to intermittently
stop executing for a few seconds. it's 100% reproducible on my machine.
I'd be tempted to say this is a nasty garbage collection performance
issue except that there is no major memory to be garbage collected in
this script.
Steve and other good folks who replied:
I want to clarify that, on my computer, the first instance of the gap occurs
way before the memory if filled. (at about 20% of physical ram). Additionally
the process monitor shows no page faults.
Yes if you let the as-written demo program run to
second.
This is the threshold for which the computer program flags the time it takes to
create a foo object. on a fast computer it should take much less than 0.1
sec.
-Original Message-
From: charlie strauss [EMAIL PROTECTED]
Sent: Oct 1, 2006 10:33 AM
To: Steve Holden [EMAIL PROTECTED
I think the point you are missing is that the garbage collector is
triggered from time to time to ensure that no cyclical garbage remains
uncollected, IIRC. The more data that's been allocated, the longer it
takes the collector to scan all of memory to do its job.
If you can find a way to
Steve, digging into the gc docs a bit more, I think the behaviour I am seeing
is still not expected. Namely, the program I offered has no obvious place
where objects are deallocated. The way GC is supposed to work is thate there
are three levels of objects
level0: newly created objects
On Oct 1, 2006, at 9:48 AM, Fredrik Lundh wrote:
charlie strauss wrote:
level0: newly created objects
level1: objects that survived 1 round of garbage collection
level2: objects that survivied 2+ rounds of gargbage collection
Since all of my numerous objects are level2 objects, and none
/etc., I would be very grateful.
Thanks,
Charlie
--
http://mail.python.org/mailman/listinfo/python-list
/RankingLanguagesFearasaCareerMove.aspx
http://www.codefez.com/Home/tabid/36/articleType/ArticleView/articleId/134/TheWaroftheVirtualBills.aspx
Thanks.
- Charlie
--
http://mail.python.org/mailman/listinfo/python-list
in the font that holds this
information that could be extracted?
Thanks in advance,
-Charlie
--
http://mail.python.org/mailman/listinfo/python-list
If it helps, I started a similar project a few years ago on SourceForge when I
was just learning python called python2xlw. I haven't supported it for quite
a while, however, I still use it a lot in my own work.
I needed to create Excel files with scatter charts in them for a web interface
I find that I use lambda functions mainly for callbacks to things like
integration or root finding routines as follows.
flow = integrate(lambda x: 2.0*pi * d(x)* v(x) * sin(a(x)),xBeg, xEnd)
root = findRoot(xBeg, xEnd,
lambda x: y2+ lp*(x-x2) -wallFunc( x )[0], tolerance=1.0E-15)
I
to C, so there might be
something basic I am missing. Any suggestions or ideas?
Thanks,
Charlie DeTar
--
http://mail.python.org/mailman/listinfo/python-list
\t\tlog.CaptureStdout(str)\n
class StderrCatcher:\n
\tdef write(self, str):\n
\t\tlog.CaptureStderr(str)\n
sys.stdout = StdoutCatcher()\n
sys.stderr = StderrCatcher()\n);
=Charlie
Charlie DeTar wrote:
So, I have an amazing, functioning foobar class
78 matches
Mail list logo