[issue46157] Typo in JSON documentation

2021-12-22 Thread Jordan Bonecutter
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

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2021-08-30 Thread Jordan Borean
Change by Jordan Borean : -- pull_requests: +26517 pull_request: https://github.com/python/cpython/pull/28073 ___ Python tracker <https://bugs.python.org/issue37

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-26 Thread Jordan Limor
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

[issue44356] Multiple enum mixins not allowed even when they have the same datatype

2021-06-11 Thread Jordan Ephron
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'

[issue44356] Abstract enum mixins not allowed

2021-06-11 Thread Jordan Ephron
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

[issue44356] Abstract enum mixins not allowed

2021-06-09 Thread Jordan Ephron
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

[issue44356] Abstract enum mixins not allowed

2021-06-09 Thread Jordan Ephron
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

[issue44356] Abstract enum mixins not allowed

2021-06-08 Thread Jordan Ephron
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

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2021-05-29 Thread Jordan Borean
Change by Jordan Borean : -- pull_requests: +25050 pull_request: https://github.com/python/cpython/pull/26454 ___ Python tracker <https://bugs.python.org/issue37

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2021-04-13 Thread Jordan Borean
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

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2021-04-12 Thread Jordan Borean
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

[issue43431] Subprocess timeout causes output to be returned as bytes in text mode

2021-03-08 Thread Jordan Macdonald
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

[issue43431] Subprocess timeout causes output to be returned as bytes in text mode

2021-03-07 Thread Jordan Macdonald
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

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2020-11-04 Thread Jordan Williams
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

[issue41325] Document addition of `mock.call_args.args` and `mock.call_args.kwargs` in 3.8

2020-07-17 Thread Jordan Speicher
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

[issue41325] Document addition of `mock.call_args.args` and `mock.call_args.kwargs` in 3.8

2020-07-17 Thread Jordan Speicher
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

[issue36621] shutil.rmtree follows junctions on windows

2019-04-12 Thread Jordan Hueckstaedt
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

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-01-08 Thread Jordan Hueckstaedt
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):

[issue32117] Tuple unpacking in return and yield statements

2018-09-21 Thread Jordan Chapman
Change by Jordan Chapman : -- pull_requests: +8897 ___ Python tracker <https://bugs.python.org/issue32117> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32117] Tuple unpacking in return and yield statements

2018-09-15 Thread Jordan Chapman
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

[issue32117] Tuple unpacking in return and yield statements

2018-09-15 Thread Jordan Chapman
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

[issue32117] Tuple unpacking in return and yield statements

2018-09-14 Thread Jordan Chapman
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

[issue34027] python 3.7 openpty/forkpty build failure using nix package manager macOS environment

2018-07-03 Thread Daiderd Jordan
Daiderd Jordan added the comment: Either patch looks fine to me, should I close the pull request? -- ___ Python tracker <https://bugs.python.org/issue34

[issue34027] python 3.7 openpty/forkpty build failure using nix package manager macOS environment

2018-07-03 Thread Daiderd Jordan
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

[issue34027] python 3.7 openpty/forkpty build failure on macOS

2018-07-02 Thread Daiderd Jordan
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

[issue34027] python 3.7 openpty/forkpty build failure on macOS

2018-07-02 Thread Daiderd Jordan
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

[issue34027] python 3.7 openpty/forkpty build failure on macOS

2018-07-02 Thread Daiderd Jordan
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

[issue34027] python 3.7 openpty/forkpty build failure on macOS

2018-07-02 Thread Daiderd Jordan
Change by Daiderd Jordan : -- keywords: +patch pull_requests: +7664 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34027> ___ ___ Py

[issue34027] python 3.7 openpty/forkpty build failure on macOS

2018-07-02 Thread Daiderd Jordan
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

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2017-12-12 Thread Jordan Speicher
Change by Jordan Speicher <jspike...@gmail.com>: -- keywords: +patch pull_requests: +4709 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue30001] CPython contribution docs reference missing /issuetracker page

2017-04-06 Thread Alex Jordan
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

[issue30001] CPython contribution docs reference missing /issuetracker page

2017-04-05 Thread AJ Jordan
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

[issue27715] call-matcher breaks if a method is mocked with spec=True

2017-02-02 Thread jordan-pittier
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

[issue28443] Logger methods never use kwargs

2016-10-14 Thread Jordan Brennan
Changes by Jordan Brennan <sc0...@googlemail.com>: -- components: +Library (Lib) ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28443] Logger methods never use kwargs

2016-10-14 Thread Jordan Brennan
Changes by Jordan Brennan <sc0...@googlemail.com>: -- components: -Argument Clinic ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28443] Logger methods never use kwargs

2016-10-14 Thread Jordan Brennan
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

Re: Stupid question, just need a quick and dirty fix

2016-07-21 Thread Jordan Bayless
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.

Re: Stupid question, just need a quick and dirty fix

2016-07-21 Thread Jordan Bayless
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

Stupid question, just need a quick and dirty fix

2016-07-21 Thread Jordan Bayless
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

[issue22948] Integer type and __add__

2014-11-26 Thread Jordan
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

[issue22942] Language Reference - optional comma

2014-11-25 Thread Jordan
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

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2013-10-06 Thread Jordan Szubert
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

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2013-10-06 Thread Jordan Szubert
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

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2013-06-16 Thread Jordan Szubert
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

Python Script for Colorizing Traceroute Output

2012-11-17 Thread Jordan Bylsma
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

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread Jordan Bylsma
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

A case for real multiline comments

2012-04-18 Thread Jordan Perr
around this without true multiline comments. - Jordan -- http://mail.python.org/mailman/listinfo/python-list

Dynamically Cause A Function To Return

2011-09-19 Thread Jordan Evans
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

[issue12867] linecache.getline() Returning Error

2011-08-30 Thread Jordan Meyer
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

[issue12042] What's New multiprocessing example error

2011-05-27 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-23 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-14 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-14 Thread Jordan Stadler
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

[issue12042] What's New multiprocessing example error

2011-05-13 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-12 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-12 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-12 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-12 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-12 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
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

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
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

Directly Executable Files in Python

2011-03-28 Thread Jordan Meyer
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

Re: Instant File I/O

2011-03-24 Thread Jordan Meyer
That did the trick! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

programming

2010-09-19 Thread Jordan Blanton
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

[issue9668] strings in json.dump in '' instead of

2010-08-24 Thread Jordan Szubert
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

[issue8538] Add ConfigureAction to argparse

2010-08-09 Thread Jeremiah Jordan
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

array matching

2010-04-29 Thread Bill Jordan
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

datetime string conversion error

2010-03-16 Thread Jordan Apgar
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

Re: datetime string conversion error

2010-03-16 Thread Jordan Apgar
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

Binary data transfer issue

2010-03-15 Thread Jordan Apgar
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

fork vs threading.Thread

2010-02-12 Thread Jordan Apgar
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,

Pycrypto RSA ciphertext to string back to ciphertext issue

2010-02-11 Thread Jordan Apgar
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 =

SocketServer error: AttributeError: instance has no __call__ method

2010-02-10 Thread Jordan Apgar
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,

SimpleXMLRPCServer and client address

2010-02-10 Thread Jordan Apgar
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

errno 107 socket.recv issue

2010-02-09 Thread Jordan Apgar
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

Re: errno 107 socket.recv issue

2010-02-09 Thread Jordan Apgar
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

Re: errno 107 socket.recv issue

2010-02-09 Thread Jordan Apgar
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? --

Re: errno 107 socket.recv issue

2010-02-09 Thread Jordan Apgar
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])

Pycrypto RSA Issue

2010-02-09 Thread Jordan Apgar
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 =

Re: errno 107 socket.recv issue

2010-02-09 Thread Jordan Apgar
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

Re: Pycrypto RSA Issue

2010-02-09 Thread Jordan Apgar
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

[issue7887] errno 107 socket.recv issure

2010-02-09 Thread Jordan Apgar
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

[issue7887] errno 107 socket.recv issure

2010-02-08 Thread Jordan Apgar
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

still having problems with Nim. using python 2.6.4

2010-02-07 Thread Jordan Uchima
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

Nim game being created, no GUI used... Need tips...

2010-02-05 Thread Jordan Uchima
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,

[issue6448] imp.find_module() -- be explicity that 'path' must be a list

2009-07-09 Thread Jordan Bettis
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

Unicode File Names

2008-10-16 Thread Jordan
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

Re: Unicode File Names

2008-10-16 Thread Jordan
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

Re: Unicode File Names

2008-10-16 Thread Jordan
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

Re: Unicode File Names

2008-10-16 Thread Jordan
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

Re: Attack a sacred Python Cow

2008-07-25 Thread Jordan
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

Re: Attack a sacred Python Cow

2008-07-24 Thread Jordan
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

Re: Attack a sacred Python Cow

2008-07-24 Thread Jordan
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

Re: Attack a sacred Python Cow

2008-07-24 Thread Jordan
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   2   3   >