New submission from Jordan Bonecutter :
In this doc: https://docs.python.org/3/library/json.html#json.dump
The section on check_circular has a typo:
...a circular reference will result in an RecursionError => a RecursionError
--
assignee: docs@python
components: Documentat
Change by Jordan Borean :
--
pull_requests: +26517
pull_request: https://github.com/python/cpython/pull/28073
___
Python tracker
<https://bugs.python.org/issue37
Change by Jordan Limor :
--
keywords: +patch
nosy: +chilaxan
nosy_count: 1.0 -> 2.0
pull_requests: +26424
pull_request: https://github.com/python/cpython/pull/27938
___
Python tracker
<https://bugs.python.org/issu
Jordan Ephron added the comment:
Oops, still getting used to the Python mailing list format. Learned
something new! Thanks for all your awesome work on Python.
On 11.06.2021 08:19, Ethan Furman wrote:
>
>Ethan Furman added the comment:
>
>Glad you like it!
>
>Please don'
Jordan Ephron added the comment:
On 10.06.2021 15:33, Ethan Furman wrote:
>Since I like puzzles, here is a working LenientStrEnum:
>...
Oh indeed, that's really cool!
--
title: Multiple enum mixins not allowed even when they have the same datatype
-> Abstract enum mixins no
Jordan Ephron added the comment:
Oh, on further investigation I see that the example wouldn't have worked on 3.8
anyway, due to issue34536 adding some checks to the type returned by _missing_,
so maybe I'm pushing Enum too far in that case
Jordan Ephron added the comment:
> But what is an `UnexpectedString()`
Sorry, that’s maybe less relevant to the example. It’s just a subclass of
string with some marker to make it detectable later on, similar to schemes that
taint user input to prevent sql injection or whatever
> On
New submission from Jordan Ephron :
Prior to 3.8 it was possible to create "abstract" enums (without members) and
mix them together. To motivate with an example, perhaps we're modeling an API
and want to be robust in the face of inconsistent casing
class CaseInsensitiveStrEnum
Change by Jordan Borean :
--
pull_requests: +25050
pull_request: https://github.com/python/cpython/pull/26454
___
Python tracker
<https://bugs.python.org/issue37
Jordan Borean added the comment:
Fantastic thanks, I'll keep watching the issue in the background as it sounds
like it's under control.
--
___
Python tracker
<https://bugs.python.org/issue37
Jordan Borean added the comment:
I'm looking through the PR https://github.com/python/cpython/pull/17975 and it
doesn't look like it addresses this particular problem. The code for start_tls
https://github.com/python/cpython/blob/d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e/Lib/asyncio
Jordan Macdonald added the comment:
Eryk Sun: Well, I think step 1 should be to update the documentation for Python
3.7 through 3.10 on `subprocess.run()` and `subprocess.TimeoutExpired` to
clearly state that `TimeoutExpired.stdout` and `TimeoutExpired.stderr` will be
in bytes format even
New submission from Jordan Macdonald :
Passing the argument `text=True` to `subprocess.run()` is supposed to mean that
any captured output of the called process is automatically decoded and retuned
to the user as test instead of bytes.
However, if you give a timeout and that timeout expires
Jordan Williams added the comment:
This issue took me a long time to diagnose when attempting to decompress a
bzip2-compressed tarball. This occurs with Python 3.9.0. Since I was using
asdf, which uses Pyenv internally, to build and manage my Python version, I
failed to notice
Change by Jordan Speicher :
--
keywords: +patch
pull_requests: +20662
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21525
___
Python tracker
<https://bugs.python.org/issu
New submission from Jordan Speicher :
`args` and `kwargs` were added to unittest `mock.call_args` in
https://bugs.python.org/issue21269 however documentation was not updated to
state that this was added in python 3.8
--
assignee: docs@python
components: Documentation
messages: 373839
New submission from Jordan Hueckstaedt :
shutil.rmtree follows junctions / reparse points on windows and will delete
files in the target link directory.
--
components: IO, Windows
messages: 340111
nosy: Jordan Hueckstaedt, paul.moore, steve.dower, tim.golden, zach.ware
priority
New submission from Jordan Hueckstaedt :
Tested in 3.7.0 on windows 10.
This looks related to https://bugs.python.org/issue22759
>>> import pathlib
>>> pathlib.Path(r"E:\Whatever\blah.txt").exists() # This drive doesn't exist
Traceback (most recent call last):
Change by Jordan Chapman :
--
pull_requests: +8897
___
Python tracker
<https://bugs.python.org/issue32117>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jordan Chapman added the comment:
Sorry, I could have sworn that I pasted my link... https://github.com/jChapman
--
___
Python tracker
<https://bugs.python.org/issue32
Jordan Chapman added the comment:
Here's my GitHub account: I'll make the changes and rebase as soon as I get
home.
--
___
Python tracker
<https://bugs.python.org/issue32
Jordan Chapman added the comment:
BFDL approval:
https://mail.python.org/pipermail/python-dev/2017-November/150842.html
--
nosy: +Jordan Chapman
___
Python tracker
<https://bugs.python.org/issue32
Daiderd Jordan added the comment:
Either patch looks fine to me, should I close the pull request?
--
___
Python tracker
<https://bugs.python.org/issue34
Daiderd Jordan added the comment:
Even tho it's headers are not /usr/lib/libutil.dylib is available on every
macOS system. Unlike on bsd this doesn't include the relevant symbols for
openpty/forkpty, that's why I used an __APPLE__ condition but including both
also works fine. Assuming it's
Daiderd Jordan added the comment:
Oh interesting, so it only used to worked by accident. I should have looked at
the 3.6 log more closely.
--
___
Python tracker
<https://bugs.python.org/issue34
Daiderd Jordan added the comment:
The headers end up in the build environment because of Libsystem which is part
of our base environment. But yes, this is also the case with 3.6 and that
builds just fine so I'm not sure why it's failing now.
These are the logs from our build service
Daiderd Jordan added the comment:
This is a build using the nix package manager, we use all of the opensource
components provided by apple instead of relying on xcode. The libutil.h that's
found in this case is the one from the 10.11.6 sources.
https://opensource.apple.com/source/libutil
Change by Daiderd Jordan :
--
keywords: +patch
pull_requests: +7664
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34027>
___
___
Py
New submission from Daiderd Jordan :
I can't really figure out why, but the import in posixmodule.c seems
to get skipped since python 3.7. The condition doesn't look entirely correct in
case libutil.h is also available on macOS, however this has not changed since
3.6 and it worked fine
Change by Jordan Speicher <jspike...@gmail.com>:
--
keywords: +patch
pull_requests: +4709
stage: -> patch review
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Alex Jordan added the comment:
Filed https://github.com/python/devguide/issues/156.
Sorry for the noise! I just assumed everything went through bpo. Guess not :)
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from AJ Jordan:
https://cpython-devguide.readthedocs.io/pullrequest.html#licensing (and
presumably other pages in this project) references
https://cpython-devguide.readthedocs.io/issuetracker, but this page returns 404
Not Found.
--
assignee: docs@python
components
jordan-pittier added the comment:
I stumbled onto this today. I can confirm the issue.
--
nosy: +jordan-pittier
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Jordan Brennan <sc0...@googlemail.com>:
--
components: +Library (Lib)
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by Jordan Brennan <sc0...@googlemail.com>:
--
components: -Argument Clinic
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
New submission from Jordan Brennan:
The methods on the Logger class e.g. logger.debug all accept **kwargs, these
are passed to the _log method but they are never used.
If _log attached them as an attribute to the LogRecord object, it would allow
for creation of more powerful Filter objects
No, I tried using a bunch of elif statements earlier and when I added more than
around 3 of them it threw errors. I just assumed that was some kind of limit.
We both agree that's piss-poor, lazy coding. I'm just trying to find something
that works though. To this point, everything I try fails.
On Thursday, July 21, 2016 at 11:28:55 PM UTC-5, Chris Angelico wrote:
> On Fri, Jul 22, 2016 at 2:19 PM, Jordan Bayless <jmbayl...@gmail.com> wrote:
> > I get various errors no matter what I do to this to try and make it work.
> > Variable not defined. Referenced before ass
I'm trying to modify some code to suit my purposes and I'm just trying to
filter results as necessary. Basically, the code is returning one of a number
from a subset of 150 numbers. I want to only do anything with it if the number
is a 'good' one. I'm by no means a Python programmer (C# for me
Jordan added the comment:
1. is lexed as a float constant
1.
1.0
1.0.__add__(2)
3.0
1 .__add__(2)
3
Not sure how to procede
--
nosy: +jordan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22948
New submission from Jordan:
# I would like to report three bugs in the
# Language Reference Python 3.4.2
#
# bug 1: Typo in parameter_list #
#
# In 8.6 the rule for parameter_list should be corrected: The first | should
Jordan Szubert added the comment:
what _lowerHTTP does is try read request header 'X-Forwarded-For', but instance
of request handler have attribute headers only if thing that connected to port
where server listens happened to send valid enough http request
my problem is, documentation does
Jordan Szubert added the comment:
#minimal server:
#!/c/Python33/python.exe
from http.server import HTTPServer as S, BaseHTTPRequestHandler as H
class HNDL(H):
def log_request(req,code):
print('header is',req.headers.get('X-Forwarder-For'),',
code',code
New submission from Jordan Szubert:
it seems that problem is someone connecting to port 8080 with non-http client,
could not find warning in documentation
---fragment of `less access.log`
81.172.30.254 - - [16/Jun/2013 11:36:58] ^SBitTorrent protocol^@^@^@^@^@^X^@^Ej
81.172.30.254
I'm looking into writing a python script that colorizes particular hops when
using traceroute. Anyone run across something like this? I don't think it would
be extremely difficult to write but some example code would help.
Basically particular hops in traceroute output would match a table as
For this case the firewalls DO respond to TTL(in most cases) and will show in a
traceroute. The objective here is to colorize particular devices to easily see
what type of devices traffic would traverse across the network. I would be
using a database of device hostnames that when they match in
around this without true multiline comments.
- Jordan
--
http://mail.python.org/mailman/listinfo/python-list
I want dynamically place the 'return' statement in a function via user input
or achieve the same through some other means. If some other means, the user
must be able initiate this at runtime during a raw_input(). This is what I
have so far, this would be an awesome command line debugging tool if
New submission from Jordan Meyer jordanmeyer1...@gmail.com:
In trying to use the linecache.getline() function to extra data from a
plain-text database format that I'm building. Every time I make a call to it
(even from the interpreter directly) I get an error like the one below. I
believe
Jordan Stadler jordan.stad...@gmail.com added the comment:
Alright, thanks for the clarification, that's pretty much how I thought it
worked. Patches supplied should be good then.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Jordan Stadler jordan.stad...@gmail.com:
Added file: http://bugs.python.org/file22127/issue12042_31.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
Changes by Jordan Stadler jordan.stad...@gmail.com:
Added file: http://bugs.python.org/file22128/issue12042_32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
Jordan Stadler jordan.stad...@gmail.com added the comment:
Alright, patches are up for 3.1 and 3.2. I'm not sure if I can just make one
for the 3.x's so I made both.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
Jordan Stadler jordan.stad...@gmail.com added the comment:
To be honest, I'm getting a bit confused as to what is required. I thought the
two most important patches would be 2.7 and 3.2, but we have 2.7, 3.1, 3.2, and
3.3 listed as versions affected.
I posted the patch for 2.7 originally
Jordan Stadler jordan.stad...@gmail.com added the comment:
Alright, should it be closed if we aren't going to touch it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
Changes by Jordan Stadler jordan.stad...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file22002/issue12042_2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
Jordan Stadler jordan.stad...@gmail.com added the comment:
Patch is up for 2.7, minor change in the documentation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
Jordan Stadler jordan.stad...@gmail.com added the comment:
I'll prepare the patch if davipo doesn't want to. I'm trying to become more
comfortable with the patching process and this seems simple enough for me to
handle.
--
nosy: +jstadler
Changes by Jordan Stadler jordan.stad...@gmail.com:
Removed file: http://bugs.python.org/file21961/exec_doc_touchup_3_x.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8824
Changes by Jordan Stadler jordan.stad...@gmail.com:
Added file: http://bugs.python.org/file21981/exec_doc_touchup_3.x.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8824
Changes by Jordan Stadler jordan.stad...@gmail.com:
Added file: http://bugs.python.org/file21982/exec_doc_touchup_2.x.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8824
Jordan Stadler jordan.stad...@gmail.com added the comment:
I've updated the 3.x patch, should be correct now.
I also updated the 2.x patch to use ``in``. :keyword:`in` was used in an
earlier part of the paragraph I modified, so I have changed both for
consistency.
This is the paragraph
Changes by Jordan Stadler jordan.stad...@gmail.com:
Removed file: http://bugs.python.org/file21960/exec_doc_touchup_2_x.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8824
Jordan Stadler jordan.stad...@gmail.com added the comment:
I'm going to update the documentation to include the scope information. Should
be done within a day.
--
nosy: +jstadler
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Jordan Stadler jordan.stad...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file21960/exec_doc_touchup_2_x.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8824
Changes by Jordan Stadler jordan.stad...@gmail.com:
Added file: http://bugs.python.org/file21961/exec_doc_touchup_3_x.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8824
Jordan Stadler jordan.stad...@gmail.com added the comment:
Patches for 2.x and 3.x documentation related to 'exec'.
2.x
Provides more information about scopes when using additional expressions
for 'exec'. 2.x documentation for 'exec' is found in
reference/simple_stmts.
3.x
Provides more
Is it possible to make a directly executable (such as .exe on Windows) file
from scripts written in Python? So as to prevent the end-user from having to
download an interpreter to run the program.
--
http://mail.python.org/mailman/listinfo/python-list
That did the trick! Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I am in a computer science class in which I am supposed to be creating a
program involving a sine wave and some other functions. I understand the
concept of the problem, but I don't understand any of the lingo being
used. The directions might as well be written in a different language. Is
there
Jordan Szubert joru...@gmail.com added the comment:
could not reproduce:
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.
from cStringIO import StringIO as F
import json
json.dumps('foo
Jeremiah Jordan jeremiah.jor...@gmail.com added the comment:
I think this should be updated so that nargs=0 is allowed, so that you can only
do --foo/--no-foo and don't clutter up the help/interface with --foo [FOO]
--no-foo=[FOO]
You can do this by adding nargs to the ConfigureAction
Hey guys,
I am sorry if this is not the right list to post some questions. I have a
simple question please and would appreciate some answers as I am new to Python.
I have 2 D array: test = [[A,1],[B,2],[A,3][B,4]]
I want to arrang this array in different arrays so each one will have what is
14:46:38.409137
2010-01-16 14:46:38.409137
notice the 01 in the second date from what I could tell everything is
formatted correctly.
thanks for the help.
~Jordan
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 16, 3:07 pm, Christian Heimes li...@cheimes.de wrote:
Jordan Apgar wrote:
Hey all,
I'm trying to convert a string to a date time object and all my fields
convert except for month which seems to default to january.
here's what I'm doing:
date = 2010-03-16 14:46:38.409137
there are better ways and transfer
protocol modules to but I'd like to do this without them.
~Jordan
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to run two servers in the same program at once. Here are
the two:
class TftpServJ(Thread):
def __init__(self, ip, root, port=69, debug = False ):
Thread.__init__(self)
setup stuff here
def run(self):
try:
self.server.listen(self.ip,
Hey all,
I'm trying to convert the encrypted data from RSA to a string for
sending over xmlrpc and then back to usable data. Whenever I decrypt
I just get junk data. Has anyone else tried doing this? Here's some
example code:
from Crypto.PublicKey import RSA
from Crypto import Random
key =
Hey guys,
I'm having some issues connecting to my Socket Server, I get this
traceback on the sever side:
Exception happened during processing of request from ('127.0.0.1',
56404)
Traceback (most recent call last):
File /usr/lib/python2.6/SocketServer.py,
I'm trying to right a server that needs specific information for each
client accessing it. The easiest way I could think of doing this is
keeping this information based on ip address (the information is only
valid for a short time). I know there is no was to get the client's
address directly and
I have a simple tcp server and client where the server sits and waits
for a message and then processes it, my client sends its first message
to the server. On the server I receive:
socket.error: [Errno 107] Transport endpoint is not connected
when calling
msg = self.socket.recv(self.buffer)
My
I found my car ;)
here's the server:
class commServer:
Class to hold a tcp server and interact with with it
allows for a wrapper around socket class to keep code clean
def __init__ (self, host, hostid, port, buff =1024):
self.host = host
self.hostid = hostid #id of
http://docs.python.org/library/socketserver.html
JM
each time a handler is spawned is it client specific? in other words
when two clients send something to the server do handlers spawn for
each of them or does everything just go into a single handler?
--
thanks JM,
at this point i switched over to this scheme and now I'm getting an
error durring instantiation of the server:
Server.py:
from Crypto.PublicKey import RSA
from ServerNegotiator import ServerNegotiator
from sharedComs import *
f = open(hostid)
tup = stringToTuple(f.readline()[0:-1])
I am trying to encrypt public data along with another tuple and then
decrypt it after sending. RSA is needed for negotiation of keys for
AES. But I just get garbage after I decrypt it. This is what I'm
attempting to do:
from Crypto.PublicKey import RSA
from Crypto import Random
gkey =
On Feb 9, 1:51 pm, Jean-Michel Pichavant jeanmic...@sequans.com
wrote:
Jordan Apgar wrote:
thanks JM,
at this point i switched over to this scheme and now I'm getting an
error durring instantiation of the server:
Server.py:
from Crypto.PublicKey import RSA
from ServerNegotiator
On Feb 9, 1:27 pm, Legrandin pheenso...@farifluset.mailexpire.com
wrote:
gkey = RSA.generate(384, Random.new().read)
string = str((gkey.publickey().__getstate__(),(333,444)))
You are encrypting with RSA a piece of data which is way
larger than the key size (48 bytes).
ah thanks Legrandin
Jordan Apgar twistedphr...@gmail.com added the comment:
Sorry I was under the impression this was an issue with the socket module
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7887
New submission from Jordan Apgar twistedphr...@gmail.com:
I have a simple tcp server and client where the server sits and waits for a
message and then processes it, my client sends its first message to the server.
On the server I receive:
socket.error: [Errno 107] Transport endpoint
playerChoice from x, and display the result, which should be x,
but, then, x resets... by the way, i need this program finished by
wednesday, Feb. 10, 2010. Please help me!!!
--
Jordan (fuzzy.666.ch...@gmail.com)
Nim.py
Description: Binary data
--
http://mail.python.org/mailman/listinfo/python-list
I am creating a game called Nim, but cannot get a loop going no matter what
I do. What i am trying to do is get it to only accept input from 1 to 4,
and keep asking for input from the same player if he/she enters in an
invalid number. I also want it to stop when there is 1 or no piece(s) left,
New submission from Jordan Bettis jord...@hafdconsulting.com:
Hi. I just spent a while fighting with imp.find_module because I was
trying to pass the path as a string, rather than a string embedded in a
list:
result = find_module('mod', '/path')
rather than
result = find_module('mod', ['/path
I've got a bunch of files with Japanese characters in their names and
os.listdir() replaces those characters with ?'s. I'm trying to open
the files several steps later, and obviously Python isn't going to
find '01-.jpg' (formally '01-ひらがな.jpg') because it doesn't exist.
I'm not sure where in
On Oct 16, 9:20 pm, John Machin [EMAIL PROTECTED] wrote:
On Oct 17, 11:43 am, Jordan [EMAIL PROTECTED] wrote:
I've got a bunch of files with Japanese characters in their names and
os.listdir() replaces those characters with ?'s. I'm trying to open
the files several steps later
On Oct 16, 10:18 pm, John Machin [EMAIL PROTECTED] wrote:
On Oct 17, 12:52 pm, Jordan [EMAIL PROTECTED] wrote:
On Oct 16, 9:20 pm, John Machin [EMAIL PROTECTED] wrote:
On Oct 17, 11:43 am, Jordan [EMAIL PROTECTED] wrote:
I've got a bunch of files with Japanese characters
On Oct 16, 10:18 pm, John Machin [EMAIL PROTECTED] wrote:
On Oct 17, 12:52 pm, Jordan [EMAIL PROTECTED] wrote:
On Oct 16, 9:20 pm, John Machin [EMAIL PROTECTED] wrote:
On Oct 17, 11:43 am, Jordan [EMAIL PROTECTED] wrote:
I've got a bunch of files with Japanese characters
Well this discussion is chugging along merrily now under its own
steam, but as the OP I should probably clarify a few things about my
own views since people continue to respond to them (and are in some
cases misunderstanding me.)
I *like* explicit self for instance variable access. There are
Of course not.
I just think Explicit is better than Implicit is taken seriously by a
large segment the Python community as a guiding principle, and overall
its influence does more harm than good.
Clearly self being in every argument list was a decision arrived at
long before the Zen was ever
On Jul 24, 7:40 pm, Torsten Bronger [EMAIL PROTECTED]
wrote:
Hallöchen!
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just like this. However, the compiler
OK, it seems my original reply to Bruno got lost in the Aether
(apologies therefore if a paraphrased quantum duplicate of this
message is eventually forthcoming.)
Torsten has adequately responded to his second point, so I need only
replicated what I said for the first.
Please get your facts,
1 - 100 of 214 matches
Mail list logo