New submission from Nicholas Chammas :
The doc for sqlite3.create_function shows the signature as follows:
https://docs.python.org/3.9/library/sqlite3.html#sqlite3.Connection.create_function
```
create_function(name, num_params, func, *, deterministic=False)
```
But it appears that the
Nicholas Chammas added the comment:
Just a note that I also went looking for the docs for
argparse.ArgumentTypeError after coming across it in this (highly viewed) post:
https://stackoverflow.com/a/14117511/877069
--
nosy: +nchammas
___
Python
Nicholas Chammas added the comment:
Nope, go ahead.
--
___
Python tracker
<https://bugs.python.org/issue34713>
___
___
Python-bugs-list mailing list
Unsub
Nicholas Chammas added the comment:
Looks like it's bytes written, not characters:
```
>>> import csv
>>> with open('test.csv', 'w', newline='') as csv_file:
... csv_writer = csv.writer(
... csv_file,
... dialect=
New submission from Nicholas Chammas :
It _looks_ like csvwriter.writerow() returns the number of bytes (or is it
characters?) written. However, there is no documentation of this:
https://docs.python.org/3.7/library/csv.html#csv.csvwriter.writerow
Is this behavior part of the method
Change by Nicholas Chammas :
--
nosy: +nchammas
___
Python tracker
<https://bugs.python.org/issue22269>
___
___
Python-bugs-list mailing list
Unsubscribe:
Nicholas Chammas added the comment:
Thanks for the tip. Enabling the fault handler reveals that the crash is
happening from the Cryptography library. I'll move this issue there.
Thank you.
--
resolution: -> not a bug
status: open -> closed
Added file: http://bugs.python.or
Changes by Nicholas Chammas :
Added file: http://bugs.python.org/file42052/stacktrace.txt
___
Python tracker
<http://bugs.python.org/issue26463>
___
___
Python-bugs-list m
New submission from Nicholas Chammas:
Python 3.5.1, OS X 10.11.3.
I have an application that uses asyncio and Cryptography (via the AsyncSSH
library). Cryptography has some parts written in C, I believe.
I'm testing my application by sending a keyboard interrupt while 2 tasks are
workin
Changes by Nicholas Chammas :
--
nosy: +Nicholas Chammas
___
Python tracker
<http://bugs.python.org/issue8706>
___
___
Python-bugs-list mailing list
Unsubscribe:
Nicholas Chammas added the comment:
Yep, you're right. I'm just understanding now that we have lots of methods
defined in C which have signatures like this.
Is there an umbrella issue, perhaps, that covers adding support for
keyword-based arguments to functions defined in C, like
Nicholas Chammas added the comment:
So you're saying if `bytes.translate()` accepted keyword arguments, its
signature would look something like this?
```
bytes.translate(table, delete=None)
```
I guess I was under the mistaken assumption that argument names in the docs
always matched ke
New submission from Nicholas Chammas:
The docs for `bytes.translate()` [0] show the following signature:
```
bytes.translate(table[, delete])
```
However, calling this method with keyword arguments yields:
```
>>> b''.translate(table='la table', delete=b'de
Nicholas Chammas added the comment:
Related discussions about providing more helpful syntax error messages:
* http://bugs.python.org/issue1634034
* http://bugs.python.org/issue400734
* http://bugs.python.org/issue20608
>From the discussion on issue1634034, it looks like providing bet
Nicholas Chammas added the comment:
As of Python 3.5.1 [0], it looks like
1) the `aliased` and `terse` parameters of `platform.platform()` are documented
to take integers instead of booleans (contrary to what Marc-Andre requested),
and
2) calling `platform.platform()` with `aliased` set to
New submission from Nicholas Chammas:
Here is the user interaction:
```python
$ python3
Python 3.5.1 (default, Dec 7 2015, 21:59:10)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin
Type "help", "copyright", "credits" or "license&qu
New submission from Nicholas Chammas:
Here is traceback.print_tb()'s signature [0]:
```
def print_tb(tb, limit=None, file=None):
```
However, its documentation reads [1]:
```
.. function:: print_tb(traceback, limit=None, file=None)
```
Did the keyword argument change recently, or was
Nicholas Chammas added the comment:
Alright, sounds good to me. Thank you for guiding me through the process!
--
___
Python tracker
<http://bugs.python.org/issue25
Nicholas Chammas added the comment:
Ah, I see. The setup/teardown stuff runs for each test.
So this is what I did:
* Added a method to add a "bad" source file to the source directory. It gets
cleaned up with the existing teardown method.
* Used test_importlib to temporarily mutate s
Nicholas Chammas added the comment:
I've added the tests as we discussed. A couple of comments:
* I found it difficult to reuse the existing setUp() code so had to essentially
repeat a bunch of very similar code to create "bad" files. Let me know if you
think there is a better
Nicholas Chammas added the comment:
I know. I came across this issue after upgrading to the 3.5.1 release and
seeing that vars(namedtuple) didn't work anymore.
I looked through the changelog [0] for an explanation of why that might be and
couldn't find one, so I posted that questio
Nicholas Chammas added the comment:
Should this change be called out in the 3.5.1 release docs? It makes some code
that works on 3.5.0 break in 3.5.1.
See: http://stackoverflow.com/q/34166469/877069
--
nosy: +Nicholas Chammas
___
Python tracker
Nicholas Chammas added the comment:
Absolutely. I'll add a "bad source file" to `setUp()` [0] and check return
values as part of the existing checks in `test_compile_files()` [1].
Does that sound like a good plan to you?
Also, I noticed that `compile_path()` has no tests. Shou
Nicholas Chammas added the comment:
Oh derp. It appears this is dup of issue24386. Apologies.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issu
Nicholas Chammas added the comment:
Whoops, wrong issue. Reopening.
--
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue25768>
___
___
Py
Nicholas Chammas added the comment:
Oh derp. It appears this is dup of issue24386. Apologies.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issu
New submission from Nicholas Chammas:
Not sure where to report this. Is there a component for the bug tracker itself?
Anyway, Gmail sends emails from this bug tracker to spam and flags each one
with the following message:
> Why is this message in Spam? It is in violation of Googl
Nicholas Chammas added the comment:
:thumbsup: Take your time.
--
___
Python tracker
<http://bugs.python.org/issue25768>
___
___
Python-bugs-list mailin
Nicholas Chammas added the comment:
And I just signed the contributor agreement. (Some banner showed up when I
attached the patch to this issue asking me to do so.)
--
___
Python tracker
<http://bugs.python.org/issue25
Nicholas Chammas added the comment:
OK, here's a patch.
I reviewed the doc style guide [0] but I'm not 100% sure if I'm using the
appropriate tense. There are also a couple of lines that go a bit over 80
characters, but the file already had a few of those.
Am happy to make
Nicholas Chammas added the comment:
Exciting! I'm on it.
--
___
Python tracker
<http://bugs.python.org/issue25768>
___
___
Python-bugs-list mailing list
New submission from Nicholas Chammas:
I'm using the public functions of Python's built-in compileall module.
https://docs.python.org/3/library/compileall.html#public-functions
There doesn't appear to be documentation of what each of these functions
returns.
I figured out, fo
Changes by Nicholas Chammas :
--
nosy: +Nicholas Chammas
___
Python tracker
<http://bugs.python.org/issue25284>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Nicholas Chammas :
--
nosy: +Nicholas Chammas
___
Python tracker
<http://bugs.python.org/issue21423>
___
___
Python-bugs-list mailing list
Unsubscribe:
34 matches
Mail list logo