Jeff Allen added the comment:
Thomas wrote:
> it's as part of this discussion in
> https://mail.python.org/archives/list/python-...@python.org/thread/ABR2L6BENNA6UPSPKV474HCS4LWT26GY/#IAOCDDCJ653NBED3G2J2YBWD7HHPFHT6
> and others in #python-dev
That's where I noticed it, but
Jeff Allen added the comment:
I'm interested in Thomas' reasons, but here are some of mine (as far as I
understand things):
1. It is specific to one interpreter implemented in C, equipped with a GIL, and
on certain assumptions about the byte code interpreter and the implementation
of built
Nicole Allen added the comment:
Thanks for putting that all together. Besides for amazing digital marketing
plans visit us now https://www.seobrisk.com/locations/seo-detroit/
--
nosy: +nicoleallen
___
Python tracker
<https://bugs.python.
Change by Allen :
--
title: cannot compute sizeof (long double) -> macOS cannot compute sizeof (long
double)
___
Python tracker
<https://bugs.python.org/issu
Change by Allen :
--
files: config.log
nosy: allenlili
priority: normal
severity: normal
status: open
title: cannot compute sizeof (long double)
type: compile error
versions: Python 3.9
Added file: https://bugs.python.org/file49933/config.log
Allen Downey added the comment:
This API would work well for my use cases.
And looking back at previous comments in this thread, I think this proposal
avoids the most objectionable pitfalls.
--
nosy: +AllenDowney
___
Python tracker
<ht
Clint Allen added the comment:
I don't see anything further needed with this issue. Closing it is fine with
me.
--
status: pending -> open
___
Python tracker
<https://bugs.python.org/issu
Jeff Allen added the comment:
Jython uses the reference grammar and ASDL as a way to ensure it is Python we
approximate, not some subtly different language. The presence of Suite here
gives rise to a class
(https://github.com/jythontools/jython/blob/v2.7.2b3/src/org/python/antlr/ast
Hi,
Recently I’ve been trying to code a Discord bot in Python 3.6.2, then I
realised that some features of discord.py were only available in Python 3.7+
(as seen here on the right near the top
https://docs.python.org/3/library/asyncio.html), so I downloaded 3.7.2. After
correctly changing the
Clint Allen added the comment:
Agreed, that is a better approach.
I have tested your patch successfully with gcc on Solaris 11.3.
--
___
Python tracker
<https://bugs.python.org/issue34
Change by Clint Allen :
--
keywords: +patch
Added file:
https://bugs.python.org/file47680/Python-2.7.15-Modules_multiprocessing_h.patch
___
Python tracker
<https://bugs.python.org/issue34
New submission from Clint Allen :
The build of this module fails with this error:
In file included from /usr/include/limits.h:12:0,
from
/usr/gcc/5/lib/gcc/sparcv9-sun-solaris2.11/5.4.0/include-fixed/limits.h:168,
from
/usr/gcc/5/lib/gcc/sparcv9-sun
Allen Downey <allendow...@gmail.com> added the comment:
I'd like to second Raymond's suggestion. With just a few additional methods,
you could support a useful set of operations. One possible API:
def scaled(self, factor)
"""Returns a new Counter with all values multipli
Change by Allen Tracht <aetra...@gmail.com>:
--
components: Library (Lib)
nosy: Allen Tracht
priority: normal
severity: normal
status: open
title: NoReturn missing from __all__ in typing.py
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Pyth
New submission from Allen <londonowl1...@gmail.com>:
Could someone help me use python to track the tArget phones location and i
would like to intercepts all text and emaIl.
..
--
messages: 311059
nosy: BIGAL
priority: normal
severity: normal
status: open
title: Tr
New submission from Allen <londonowl1...@gmail.com>:
..
--
messages: 310995
nosy: BIGAL
priority: normal
severity: normal
status: open
title: The replys additional (Re.) is ok.
___
Python tracker <rep...@bugs.python.org>
<https://
Change by Allen Li <vianchielfa...@gmail.com>:
--
type: -> enhancement
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32299>
___
_
New submission from Allen Li <vianchielfa...@gmail.com>:
mock.patch.dict.__enter__ should return the patched dict/mapping object.
Currently it returns nothing (None).
This would make setting up fixtures more convenient:
with mock.patch.dict(some.thing):
some.thing['foo']
Change by Allen Li <vianchielfa...@gmail.com>:
--
nosy: +Allen Li
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue9924>
___
__
New submission from Allen Li <vianchielfa...@gmail.com>:
sqlite3.connect() should accept PathLike objects (objects that implement
__fspath__)
--
messages: 304773
nosy: Allen Li
priority: normal
severity: normal
status: open
title: sqlite3.connect() should accept PathLike o
Change by Allen Li <vianchielfa...@gmail.com>:
--
type: -> enhancement
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31843>
___
_
New submission from Allen Li <vianchielfa...@gmail.com>:
It would be useful to document that urllib.parse.{Defrag,Split,Parse}Result are
namedtuples, and make that API officially public if it was not otherwise.
These classes are implemented as namedtuples in Python 2 and 3, and I am not
Change by Jeff Allen <ja...@farowl.co.uk>:
--
nosy: +jeff.allen
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31630>
___
__
Timothy Allen <t...@pyphilly.org> added the comment:
This would be a benefit to my team, for sure. I can't even tell you how many
different solutions we currently use to make file sizes human readable - at
least three.
--
nosy: +Fli
Allen Riddell <a...@ariddell.org> added the comment:
Upon some reflection, I think raising a ValueError is the right thing to do.
Negative weights don't have an obvious interpretation.
--
___
Python tracker <rep...@bugs.python.or
New submission from Allen Riddell <a...@ariddell.org>:
Code to reproduce problem:
population = list(range(10))
weights = list(-1 * w for w in range(10))
[random.choices(population, weights) for _ in range(1000)]
will raise IndexError:
358 bisect = _bisect.bisect
is there a way to install python on a thumb drive that does not require an
administrator's password? I have to use public computers and store all my
applications to the thumb drive, using the Portable Apps Platform to manage
the applications.
--
Jeff Allen added the comment:
Just terminology ... strictly speaking what you've done here is "add a *field*
to the nodes Module, FunctionDef and ClassDef", rather than add an *attribute*
-- that is, when one is consistent with the terms used in the ast module
(https://docs.py
New submission from Allen David Frankel:
On the Python Tutorial for beginners, the Python 3.6 gives me a syntax error
with strings and does not respond to print and/or nothing comes up.
--
components: Demos and Tools
messages: 281921
nosy: ADFGUR
priority: normal
severity: normal
Jeff Allen added the comment:
Ah, cunning: I can make sense of it in hex.
>>> hex(to_ulps(expected))
'0x3ff0'
>>> hex(to_ulps(got))
'0x3fec'
>>> hex( to_ulps(got) - to_ulps(expected) )
'-0x4'
... and what you've done with ulp then follows.
Jeff Allen added the comment:
Mark: Thanks for doing my homework. Points 1 and 3 I can readily agree with. I
must take another look at to_ulps() with your patch on locally. I used the
approach I did because I thought it was incorrect in exactly those corners
where you prefer it. I'll take
Jeff Allen added the comment:
Mark: Thanks for validating the additional cases so carefully.
If you still want to apply it in stages then I suppose the change to the
comparison logic could go first (untested idea), although that's also where I
could most easily have made a mistake
Jeff Allen added the comment:
It would be nice to see this considered alongside #26040.
--
nosy: +jeff.allen
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Jeff Allen <ja...@farowl.co.uk>:
Added file: http://bugs.python.org/file42191/extra_cmath_testcases.py
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by Jeff Allen <ja...@farowl.co.uk>:
Removed file: http://bugs.python.org/file42190/stat_math.py
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by Jeff Allen <ja...@farowl.co.uk>:
Added file: http://bugs.python.org/file42192/stat_math.py
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by Jeff Allen <ja...@farowl.co.uk>:
Removed file: http://bugs.python.org/file41526/stat_math.py
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Jeff Allen added the comment:
Thanks for the prompt acknowledgement and for accepting this to review.
I have updated the coverage & tolerance demo program. Usage in the comments (in
v3).
I have also added the program I used to generate the extra test cases (needs
mpmath -- easier to
Changes by Jeff Allen <ja...@farowl.co.uk>:
Added file: http://bugs.python.org/file42190/stat_math.py
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Jeff Allen added the comment:
Here is a patch that improves coverage and addresses the uneven accuracy.
Required accuracy is now specified in ulps. Mostly, I have choses 1 ulp, since
this passed for me on an x86 architecture (and also ARM), but this may be too
ambitious.
I have also
Jeff Allen added the comment:
I'm also interested in a smooth experience for beginners.
I have a factual observation with respect to Terry's comment:
'''Windows icons have a Shortcut tab with a Start-in field. We should like to
put %USERPROFILE% there, but this does not work -- msg253393
New submission from Michael Allen:
Modifying a file while getting a stacktrace across multiple threads causes
linecache's cache to bust and del to be called on the global cache variable.
This is not thread safe and raises a KeyError.
Reproducible with,
import threading
import traceback
def
Would like to locate and install numpy, scipy and matplotlib
with Wing 101 for Python 2.7
Just beginning to use Python 2.7 for engineering work.
Any guidance would be appreciated.
Thanks,
WDA
balle...@gmail.com
end
--
https://mail.python.org/mailman/listinfo/python-list
Jeff Allen added the comment:
Disabling the AV/firewall did not stop the symptoms when I was investigating
originally. In order to get the unmodified test to pass, I had to stop the BFE
(base filtering engine), which I think may have been given new rules or
behaviours as a result
New submission from Allen Riddell:
The following important information from PEP 3156 does not appear in the
asyncio library documentation:
Datagram protocols have connection_made() and connection_lost() methods with
the same signatures as stream protocols.
Indeed, reading the docs it looks
New submission from Allen Riddell:
Creating a UDP connection through ``create_datagram_endpoint`` when specifying
both remote_addr and local_addr does not work; messages are not received. If
remote_addr is removed, messages are received.
Easy to reproduce:
works: python3 client_good.py
Allen Riddell added the comment:
(couldn't figure out how to attach multiple files)
-- client_good.py --
Send and receive a messages using DatagramProtocol
import asyncio
import time
class Helloer(asyncio.DatagramProtocol):
def connection_made(self, transport):
print('(helloer
Allen Riddell added the comment:
I gather this is the desired behavior.
If one specifies remote_addr then one only accepts packets from that address
and port. Whereas if no remote_addr is given then one accepts packets from any
address and any port.
Sorry for the noise
Jeff Allen added the comment:
I worked out that the essence of the test is to insert an extra \n at the end
of a GET request line. The request is syntactically invalid for HTTP. The
\n\r\n appears like two blank lines, implying no headers, but the headers then
follow where no data should
Jeff Allen added the comment:
Thanks for adding to the evidence here. As discussed above, disabling the
security product (which is Bitdefender) on my PC didn't stop the problem for
me, and I'm reluctant to uninstall. I narrowed it to the Windows Base Filtering
Engine, but perhaps
Jeff Allen added the comment:
Actual patch for your convenience. I'm not set up to build CPython from source,
so I've tested this with my installed CPython 2.7.6, and it's clean.
[As for keeping the tests in sync, yes that's our aim. Jython's Lib contains
only the customised versions
How efficient does this thing need to be?
You can always just turn it into a two-dimensional sampling problem by
thinking of the data as a function f(x=item), generating a random x=xr
in [0,x], then generating a random y in [0,max(f(x))]. The xr is
accepted if 0 y = max(f(xr)), or rejected (and
New submission from Jeff Allen:
When I run:
start python -m test.test_httpservers
test_request_line_trimming reports ERROR, and the test hangs at
test_version_none. If I run a copy of the test in which the latter test is
skipped with @unittest.skipIf(sys.platform == win32, ...), the error
New submission from Don Allen:
Give the attached file execute permission and run it. At the first breakpoint,
the backtrace will be correct. Continue. At the second breakpoint, a backtrace
will show the foo('first call') on the stack when, in fact, the call came from
foo('second call
Just wanted to send out this quick reminder--today is the last day for
PyTexas $25 registration; starting tomorrow it will cost $50.
http://www.pytexas.org/chance/1/register/
Today is also your last day to post your talk proposals.
http://www.pytexas.org/chance/1/talks/add/
Btw, there
Whoops, false alarm. Tomorrow, August 31 is actually the last day to
register and pay at the $25 rate for PyTexas. Likewise for talk
proposals.
On Thu, Aug 30, 2012 at 3:36 PM, Brad Allen bradallen...@gmail.com wrote:
Just wanted to send out this quick reminder--today is the last day
New submission from Christopher Allen-Poole christoph...@allen-poole.com:
This is is encountered when extending html.parser.HTMLParser and running with
strict mode False.
Expected behavior:
When '''div style=bThe a href=some_urlrain/a br / in
spanSpain/span/b/div''' is passed to the feed
If you're in the Texas area, please check out this post explaining
registration and the 10 reasons
you should consider attending PyTexas 2011:
http://pytexas.blogspot.com/2011/08/10-reasons-you-should-attend-pytexas.html
We opened registration on Monday morning with this post to the local
user
PyTexas 2011, the fourth annual Python programming conference for
Texas and the surrounding region, will take place Saturday September
10 and Sunday September 11, 2011 at Texas AM University in College
Station, Texas.
Last year with 94 attendees, PyTexas 2010 reached critical mass to
achieve an
You have ideas, a text editor, and a computer - best get to coding. What's
stopping you? You largely want Python, with modifications. Join the
development team and help implement those changes, or fork your own flavor
and do what you wish. Right? You imagine it's an easy task, so get after
this little Python app. Been wanting something like this
for a long time. I installed this on my iPhone running iOS 4.3.3 (8J2).
Congrats on a great app!
Bill Allen
http://www.python.org
http://www.catb.org/%7Eesr/faqs/hacker-howto.htmlhttp://taarc.rebelwolf.com
On Thu, May 12, 2011 at 02:06
For those seeking to work with Python-based tools in the healthcare
IT industry, this SIG (special interest group) can provide a forum to
discuss challenges and hopefully foster knowledge sharing and tools
development. Relevant topics include tools for working with healthcare
standard data
On Sun, Feb 27, 2011 at 07:34, n00m n...@narod.ru wrote:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
and Idon't move neither up nor down from it (the best the fastest
version)
-- http://mail.python.org/mailman/listinfo/python-list
Trolls should also
Alan Gauld has written a very good online book called Learning to Program.
I would definitely recommend it.
http://www.alan-g.me.uk/l2p/index.htm
-Bill
On Mon, Jan 24, 2011 at 11:09, santosh hs santosh.tron...@gmail.com wrote:
Hi All,
i am beginner to python please tell me which is the
Yeah, I noticed that a while back too. Kinda cool.
--Bill
On Sun, Dec 12, 2010 at 3:21 PM, DevPlayer devpla...@gmail.com wrote:
Snapshot in time, hey look at that; someone used Python as THE example
of what a programming language is on Wikipedia.
Thanks for the explanation of main. Some tutorials mention it, some
don't. I have written some not trial Python programs and have never had a
real need to use that convention, but at least I understand it now.
--Bill
On Wed, Dec 1, 2010 at 1:13 PM, Tim Harig user...@ilthio.net wrote:
On
On Jul 20, 6:57 pm, Chris Rebert c...@rebertia.com wrote:
[regarding trust of POSIX vis a vis leap seconds]
I'm not saying they necessarily should, but they're standardized and
the `time` module is based on POSIX/Unix-ish assumptions; not
following POSIX would be inconsistent and problematic.
PyTexas 2010, the fourth annual Python programming conference for
Texas and the surrounding region, will take place Saturday August 28,
2010 at the Baylor University in Waco, Texas. A variety of activities
are under consideration, including tutorials, scheduled talks,
Lightning Talks, Open Spaces,
Hello Python Community,
If you live in the Texas region, please help with PyTexas 2010
planning by filling out the new survey. This will tell us things like
whether the planned Aug 28 date works for you, whether you have a user
group in your area, and more importantly your t-shirt size :-).
Is that possible?
class A(object):
@staticmethod
def set_b(x):
# A.b = x, without knowing A is A
pass
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Ah ha, @classmethod.
On Apr 30, 3:47 pm, Thomas Allen thomasmal...@gmail.com wrote:
Is that possible?
class A(object):
@staticmethod
def set_b(x):
# A.b = x, without knowing A is A
pass
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Bryce Allen o...@bda.ath.cx added the comment:
I encountered this issue when trying to exit cleanly on SIGTERM, which I use to
terminate background daemons running serve_forever.
In BaseServer, a threading.Event is used in shutdown, so it can block until
server_forever is finished (after
/sysconfig.py.
Thanks.
--
Ray Allen
Best wishes!
--
http://mail.python.org/mailman/listinfo/python-list
programs. If you want to know more you can read the cpython source itself.
Its not too difficult.
--
Ray Allen
Best wishes!
--
http://mail.python.org/mailman/listinfo/python-list
In our company, we still use python-2.5.4, and will be updated to
python-2.5.5. I hope we can go to 2.6.x or 3.x, but I'm not sure when.
--
http://mail.python.org/mailman/listinfo/python-list
New submission from Robert Paul Allen ipatrol6...@yahoo.com:
I would like to see support for NTFS symbolic links to be added to the os
module. As simple Popen('mklink') implementation could be used. Any other ideas?
--
components: Library (Lib), Windows
messages: 99170
nosy: ipatrol
On Fri, Feb 5, 2010 at 9:49 AM, Jean-Michel Pichavant
jeanmic...@sequans.com wrote:
Anyway why would you want to use the tuple form ? it's beaten in every
aspect by the dictionary form.
I'm subclassing a namedtuple, and adding some additional functionality
such as __getitem__, __setitem__, so
reliably.
Thomas Allen
--
http://mail.python.org/mailman/listinfo/python-list
exar...@twistedmatrix.com wrote:
A message with some ticket links from a thread on the twisted-python
mailing list: http://bit.ly/8csFSa
Some of those tickets seem out of date; a better plan would be to query
for tickets with the py3k keyword:
Hello,
I've been using data.encode('ascii','replace') to force an ASCII string out
of Unicode data, with ? in the place of non-ASCII letters.
However, now I want to use a blank space (or maybe a dash) instead of a
question mark.
How do I do this?
Thank you,
:)
--
Hello,
What is the Daemon flag and when/why would I want to use it?
Thank you,
AF
--
http://mail.python.org/mailman/listinfo/python-list
What is the Daemon flag and when/why would I want to use it?
From the documentation: When a process exits, it attempts to terminate
all of its daemonic child processes..
Sometimes you want the main process to wait for its worker processes to
terminate before terminating itself so
Hello,
I have a batch of rpc style calls that I must make to an external server via
HTTP in a multi threaded fashion. (Return vales must be saved.) Problem is,
I need to throttle the rate at which I do this.
Each HTTP call takes between 0.2 and several seconds to complete.
I need to
Erik Bernoth wrote:
Hi List,
look at the following code:
def evens():
# iterator returning even numbers
i = 0
while True:
yield i
i += 2
# now get all the even numbers up to 15
L = [n for n in evens() if n 15]
Isn't it strange, that this code runs (in a lazy
I've coded my own 'relpath' implementation for 2.5 (shown below) and I
want to make sure it follows as closely as it should to 2.6 and later.
I've got a question regarding that. When attempting to convert to a
relative path and it is not possible for some reason (different drive or
UNC
I have an (in-development) python system that needs to shuttle events /
requests around over the network to other parts of itself. It will also need
to cooperate with a .net application running on yet a different machine.
So, naturally I figured some sort of HTTP event / RPC type of would be
I have an (in-development) python system that needs to shuttle events /
requests
around over the network to other parts of itself. It will also need to
cooperate with a .net application running on yet a different machine.
So, naturally I figured some sort of HTTP event / RPC type
On Jun 25, 3:29 am, Private Private mail...@gmail.com wrote:
Hi,
I am looking for a python library which will allow me to do a simple
web development. I need to use
some forms (but nice looking :-) ), creating images based on input
from those forms, etc. I have read a bit about Django and
in your lib directory?
3) How do you reference your configuration directives from within your modules
and CGI/daemon scripts?
Thank you,
Allen
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Genellina wrote:
En Tue, 02 Jun 2009 19:02:47 -0300, Brian Allen Vanderburg II
brianvanderbu...@aim.com escribió:
What is the best way to copy an object that has multiple inheritance
with the copy module. Particularly, some of the instances in the
hierarchy
(...some of the classes
the various config settings to both the web app and
scripts.
Any suggestions? ideas?
fwiw, I am planing on keeping the whole thing in a Mercurial repository.
Thank you,
Allen
:)
--
http://mail.python.org/mailman/listinfo/python-list
I'm new to Python, and am looking for some suggestions as to the source
code layout for a new project.
Is this the development layout or the deployment layout? The two need not
bear any resemblance.
Looking for suggestions on both.
I was hoping to keep the dev layout as close to
What is the best way to copy an object that has multiple inheritance
with the copy module. Particularly, some of the instances in the
hierarchy use the __copy__ method to create a copy (because even for
shallow copies they need some information updated a little
differently), so how can I
this is great, thanks... we have used generators to create something
akin to a cooperative tasking environment... not to implement
multitasking, but to be able to control low level data processing
scripts. These scripts, written as generators, yield control to a
control loop which then can pause,
andrew
thanks andrew, good advice, I should probably use that throughout our
code.
btw, hope the world is treating you well, long time no see...
-craig
--
http://mail.python.org/mailman/listinfo/python-list
New submission from J.R. Allen pyt...@petruchio.org:
Currently the zipfile.ZipFile class has no __exit__ atribute, so it
does not work with a with statement as other file objects do. Can this
be implemented?
--
components: Library (Lib)
messages: 83768
nosy: petruchio
severity
we have software we are putting into package form. So far, all the
code was in local py files and we imported between the modules as
you'd think. Now with the package (ourpackage) we are addressing
how import affects the importing module.
if ourpackage __init__.py itself does regular imports of
There you go: a 30-second psychological diagnosis by an
electrical engineer based entirely on Usenet postings. It
doesn't get much more worthless than that...
--
Grant
rolf but interesting post nonetheless. I have been really somewhat
fascinated by AS since I heard of it about a decade
On Mar 10, 1:39 pm, Paul Rubin http://phr...@nospam.invalid wrote:
Craig Allen callen...@gmail.com writes:
it raises an interesting question about why doesn't it. I can think
of practical answers to that, obviously, but in principle, if a
function compiles to exactly the same byte code
I think the point is that function objects compare by object identity,
so the two lambdas you use above are not equal even though they have the
same code.
it raises an interesting question about why doesn't it. I can think
of practical answers to that, obviously, but in principle, if a
1 - 100 of 254 matches
Mail list logo